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
In PEP 484, there is a section on conditional stubs.
For example, the next code is a valid stub code
import sys if sys.version_info <= (3,): def old_code_stub() -> None: ...
But currently, running pytd on it will fail with
pytd
Error while parsing pyi: File "/tmp/asd.py", line 3 if sys.version_info <= (3,): ^ SyntaxError: Unexpected 'DOT'
Found while doing typeshed#345.
The text was updated successfully, but these errors were encountered:
Fixed.
Sorry, something went wrong.
No branches or pull requests
In PEP 484, there is a section on conditional stubs.
For example, the next code is a valid stub code
But currently, running
pytd
on it will fail withFound while doing typeshed#345.
The text was updated successfully, but these errors were encountered: