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.platform == 'win32': def windows_def_only() -> None: ...
But currently, running pytd on it will fail with
pytd
Error while parsing pyi: File "/tmp/asd.pyi", line 3 if sys.platform == 'win32': ^ SyntaxError: Unexpected 'NAME'
The text was updated successfully, but these errors were encountered:
Fixed in our local version. We're exporting the fix now.
Sorry, something went wrong.
Fix pushed.
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 withThe text was updated successfully, but these errors were encountered: