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
from stat import filemode
$ mypy test1.py test1.py:1: error: Module 'stat' has no attribute 'filemode'
Looking in my copy of typeshed/stdlib, I see that 3/stat.pyi does not contain a stub for filemode. 3.4/_stat.pyi does, but mypy does not see it there.
3/stat.pyi
filemode
3.4/_stat.pyi
What is the right way to deal with that?
The text was updated successfully, but these errors were encountered:
stat
You can submit a PR that adds something like this
if sys.version_info >= (3, 3): def filemode...
Sorry, something went wrong.
Add stub for stat.filemode
2d9ecf0
Fixes python#1836.
Add stub for stat.filemode (#1837)
7327264
Fixes #1836.
No branches or pull requests
Looking in my copy of typeshed/stdlib, I see that
3/stat.pyi
does not contain a stub forfilemode
.3.4/_stat.pyi
does, but mypy does not see it there.What is the right way to deal with that?
The text was updated successfully, but these errors were encountered: