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

Include new features from Python 3.8 and 3.9 #136

Merged
merged 15 commits into from
Oct 30, 2024

Conversation

WeisLeDocto
Copy link
Member

@WeisLeDocto WeisLeDocto commented Oct 30, 2024

As detailed in #63, it is more than time to drop support for Python 3.7 and 3.8. This update allows using the features introduced in Python 3.8 and 3.9, which is what this PR does. The following improvements are brought to the code base:

  • Use of the walrus operator :=
  • Use of the typing.Literal class for improving documentation
  • Replacement of dict.update() calls with |=
  • Use of keyword-only and positional-only arguments
  • Replacement of typing.Tuple, typing.List, typing.Dict and typing.Type with their associated builtins
  • Use of typing.TypeVar to improve some type hints
  • Replacement of typing.Iterator, typing.Iterable and typing.Callable with their collections.abc equivalents

closes #63

@WeisLeDocto WeisLeDocto added the update Signals an issue that entails a section of code to be updated label Oct 30, 2024
@WeisLeDocto WeisLeDocto self-assigned this Oct 30, 2024
@WeisLeDocto WeisLeDocto linked an issue Oct 30, 2024 that may be closed by this pull request
4 tasks
@WeisLeDocto WeisLeDocto merged commit e180830 into develop Oct 30, 2024
31 checks passed
@WeisLeDocto WeisLeDocto deleted the feature/include_new_features_from_3.8_and_3.9 branch October 30, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update Signals an issue that entails a section of code to be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Python 3.13 and drop 3.7 and 3.8
1 participant