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

Standard collection typing is 3.9+ #9819

Open
nickdrozd opened this issue Jul 20, 2024 · 0 comments
Open

Standard collection typing is 3.9+ #9819

nickdrozd opened this issue Jul 20, 2024 · 0 comments
Labels
Enhancement ✨ Improvement to a component Needs PR This issue is accepted, sufficiently specified and now needs an implementation py-version python 3.9 typing

Comments

@nickdrozd
Copy link
Collaborator

nickdrozd commented Jul 20, 2024

Current problem

list[int], dict[str, int], etc syntax was introduced in Python 3.9.

Desired solution

Unless py-version is 3.9+ (or 3.7 with from __future__ import annotations), flag it.

Additional context

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

@nickdrozd nickdrozd changed the title Standard collection typing is 3.8+ Standard collection typing is 3.9+ Jul 20, 2024
@jacobtylerwalls jacobtylerwalls added the Needs PR This issue is accepted, sufficiently specified and now needs an implementation label Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Needs PR This issue is accepted, sufficiently specified and now needs an implementation py-version python 3.9 typing
Projects
None yet
Development

No branches or pull requests

2 participants