Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace obsolete types #176

Conversation

daniel-zullo-frequenz
Copy link
Contributor

The tool pyupgrade was used to modernize the code base given that frequenz-channels is already using python 3.11
as minimum version. The tool was mainly used to replace obsolete types.

Also black and isort tools were both run to format the code base after running pyupgrade.

Related to frequenz-floss/frequenz-sdk-python#433

The tool `pyupgrade` was used to modernize the code base
given that frequenz-channels is already using python 3.11
as minimum version.
The tool was mainly used to replace obsolete types.

Also `black` and `isort` tools were both run to format the
code base after running `pyupgrade`.

Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
Most of the annotations from __future__ are no longer needed,
except for the cases where there are circular dependencies,
forward references, or when the type hint is used inside the
class itself.

Signed-off-by: Daniel Zullo <daniel.zullo@frequenz.com>
@github-actions github-actions bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:channels Affects channels implementation part:synchronization Affects the synchronization of multiple sources (`select`, `merge`) part:core Affects the core types (`Sender`, `Receiver`, exceptions, etc.) labels Sep 7, 2023
@daniel-zullo-frequenz daniel-zullo-frequenz marked this pull request as ready for review September 7, 2023 09:19
@daniel-zullo-frequenz daniel-zullo-frequenz requested a review from a team as a code owner September 7, 2023 09:19
@daniel-zullo-frequenz daniel-zullo-frequenz added this pull request to the merge queue Sep 7, 2023
Merged via the queue into frequenz-floss:v0.x.x with commit fbcbe76 Sep 7, 2023
@daniel-zullo-frequenz daniel-zullo-frequenz deleted the fix/remove-obsolete-types branch September 7, 2023 12:20
@llucax llucax added this to the v0.17.0 milestone Sep 11, 2023
@llucax llucax modified the milestones: v1.0.0, v1.0.0-rc.1 Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:channels Affects channels implementation part:core Affects the core types (`Sender`, `Receiver`, exceptions, etc.) part:synchronization Affects the synchronization of multiple sources (`select`, `merge`) part:tests Affects the unit, integration and performance (benchmarks) tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants