We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have to write code like this:
MYPY = False if MYPY: # do mypy stuff
I think it would be more elegant if I could write
from typing import MYPY
instead. That way the values can actually be defined properly in the stubs and lib-typing files.
The text was updated successfully, but these errors were encountered:
Yeah, that's a good idea.
Sorry, something went wrong.
MYPY doesn't make sense any more in the context of PEP 484.
typing.PY2 and typing.PY3 were removed from PEP 484. We should detect runtime Python version checks instead. Created #698 to supercede this issue.
typing.PY2
typing.PY3
TYPE_CHECKING
No branches or pull requests
I have to write code like this:
I think it would be more elegant if I could write
instead. That way the values can actually be defined properly in the stubs and lib-typing files.
The text was updated successfully, but these errors were encountered: