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

PEP 585 typing update #1444

Open
sbrunato opened this issue Dec 13, 2024 · 0 comments
Open

PEP 585 typing update #1444

sbrunato opened this issue Dec 13, 2024 · 0 comments
Labels
style Code formatting, typing, ...

Comments

@sbrunato
Copy link
Collaborator

Update typing following https://peps.python.org/pep-0585/

[...] starting with Python 3.9, the following collections become generic using __class_getitem__() to parameterize contained types:

  • tuple # typing.Tuple
  • list # typing.List
  • dict # typing.Dict
  • set # typing.Set
  • frozenset # typing.FrozenSet
  • type # typing.Type
  • collections.deque
  • collections.defaultdict
  • collections.OrderedDict
  • [...]
@sbrunato sbrunato added the style Code formatting, typing, ... label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Code formatting, typing, ...
Projects
None yet
Development

No branches or pull requests

1 participant