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

Drop support for Python 3.9 #564

Open
1 of 3 tasks
niklasf opened this issue May 30, 2020 · 4 comments
Open
1 of 3 tasks

Drop support for Python 3.9 #564

niklasf opened this issue May 30, 2020 · 4 comments

Comments

@niklasf
Copy link
Owner

niklasf commented May 30, 2020

  • int.bit_count
  • typing.TypeAlias instead of aliases configured in doc/conf.py
  • typing.Union syntax
@bswck
Copy link

bswck commented Apr 10, 2024

TypeAlias can already be used from typing_extensions (with no need of actually having typing_extensions installed, mypy looks up the stub in the typeshed and sees it as a part of the standard library).

@niklasf
Copy link
Owner Author

niklasf commented Apr 18, 2024

@bswck Interesting. Won't import typing_extensions fail at runtime if it's not present, or is there a way to avoid that?

@bswck
Copy link

bswck commented Apr 18, 2024

@bswck Interesting. Won't import typing_extensions fail at runtime if it's not present, or is there a way to avoid that?

Won't fail if we don't perform the import at runtime at all, i.e. in the if typing.TYPE_CHECKING: block.
Then we can enable PEP 563 behavior to not evaluate type annotations at runtime.

@niklasf
Copy link
Owner Author

niklasf commented Apr 18, 2024

Ah, cool. Done.

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

2 participants