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

increase minimum python version to 3.10 #286

Open
andlaus opened this issue Apr 6, 2024 · 1 comment
Open

increase minimum python version to 3.10 #286

andlaus opened this issue Apr 6, 2024 · 1 comment

Comments

@andlaus
Copy link
Collaborator

andlaus commented Apr 6, 2024

most importantly, this will allow us to use kw_only for dataclasses and thus significantly simplify "manual" object creation
(because with kw_only dataclasses, it is possible to use defaulted attributes and class inheritance simultaneously)

currently, this is blocked by the fact that we aim for all maintained Ubuntu LTS releases to be supported out of the box. The first release that ships with python >= 3.10 is 22.04, i.e., until Ubuntu 20.04 reaches its end of life in April 2025, we are stuck with python 3.8...

@andlaus
Copy link
Collaborator Author

andlaus commented Apr 25, 2024

  • use the build-in container types (dict, list, ...) instead of the ones imported from typing for type annotations
  • for type annotations, use | instead of typing.Union to express multiple possibilities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant