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

Update annotations to Python 3.10, drop 3.8 and 3.9 support #41

Open
robinmackaij opened this issue Dec 4, 2024 · 0 comments
Open

Update annotations to Python 3.10, drop 3.8 and 3.9 support #41

robinmackaij opened this issue Dec 4, 2024 · 0 comments

Comments

@robinmackaij
Copy link
Collaborator

robinmackaij commented Dec 4, 2024

With Python 3.8 end of life, it's now possible to update the minimum version to 3.9 and update the annotations using the typing features for 3.9.

However, the main "cleanup" in annotations becomes possible with Python 3.10, allowing to drop the use of Union and Optional by replacement with | None.

While bumping to 3.10 at this time means dropping 3.9 support early, I expect the impact to be limited considering the adaptation of Python 3.9 has not been significant (usage statistics show the Python 3.9 share to be less than that of 3.8 and 3.10 as of december 2024).

@robinmackaij robinmackaij changed the title Update annotations to Python 3.9, drop 3.8 support Update annotations to Python 3.10, drop 3.8 and 3.9 support Dec 11, 2024
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