-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update pyi #181
Update pyi #181
Conversation
The StackOverflow article you linked suggests you're doing it wrong:
Notice how there's no file extension there, it's only the name of the module ( The correct way to run it is to go to the root of the repo, and use The output I get for this is: Click to expand
Some of these we can't do anything about (untyped libraries), some we can and might in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use typing.X
types across the judge to make it compatible with Python 3.8
. All lowercase typehints (list[...], tuple[...], dict[...], ...
) are 3.9
features and are invalid syntax in 3.8
. I've modified the workflow to run tests on both 3.8 and 3.9.
There is an undocumented way to check if the stubs are up to date, but I can't get it to work, so I compared it manually. I get:
py -3.9 -m mypy.stubtest checks.py
https://stackoverflow.com/questions/51716200/how-do-you-check-if-a-typeshed-stub-pyi-file-matches-the-implementation
python/mypy#5028 (comment)