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
Hello,
The following code snippet works perfectly:
import stat import os os.stat('/tmp')[stat.ST_MODE]
But mypy returns an error:
$ mypy bug.py bug.py:4: error: Value of type "stat_result" is not indexable
I believe that stat_result should be indexable.
The text was updated successfully, but these errors were encountered:
class stat_result is missing the __getitem__() method to implements this behaviour. Pull requests welcome!
class stat_result
__getitem__()
Sorry, something went wrong.
__init__.pyi: Add __getitem__() to stat_result()
0559929
Fixes python#2751
1a31c5c
__init__.pyi: Add __getitem__() to stat_result() (#2753)
1a37368
Fixes #2751
No branches or pull requests
Hello,
The following code snippet works perfectly:
But mypy returns an error:
I believe that stat_result should be indexable.
The text was updated successfully, but these errors were encountered: