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 code to use built-in collections for type annotations #711

Open
nkaretnikov opened this issue Dec 18, 2023 · 1 comment
Open

Update code to use built-in collections for type annotations #711

nkaretnikov opened this issue Dec 18, 2023 · 1 comment

Comments

@nkaretnikov
Copy link
Contributor

Context

Requested in #693 (comment).

These new type hints were introduced in Python 3.9: https://docs.python.org/3/whatsnew/3.9.html#type-hinting-generics-in-standard-collections

Python 3.8 was released on 2019-10-14 and its EOL is 2024-10, so we can drop support for it soon: https://devguide.python.org/versions/

Value and/or benefit

From https://peps.python.org/pep-0585/

This change removes the necessity for a parallel type hierarchy in the typing module, making it easier for users to annotate their programs and easier for teachers to teach Python.

Anything else?

No response

@nkaretnikov nkaretnikov added the needs: triaging 🚦 Someone needs to have a look at this issue and triage label Dec 18, 2023
@nkaretnikov nkaretnikov added area: testing ✅ area: user experience 👩🏻‍💻 Items impacting the end-user experience type: maintenance 🛠 and removed needs: triaging 🚦 Someone needs to have a look at this issue and triage labels Dec 18, 2023
@trallard trallard removed the area: user experience 👩🏻‍💻 Items impacting the end-user experience label Dec 20, 2023
@peytondmurray
Copy link
Contributor

Ruff has the ability to auto-fix this. Leaving open until we fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New 🚦
Development

No branches or pull requests

3 participants