-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Selected Typeshed stubs for the wrong version #2153
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
Comments
Presumably because these are two different modules -- I haven't found time to look more into which definition of |
Oh, also, this is in any case an issue for https://github.com/python/typeshed/issues, not for mypy. |
Oh, I assumed that since a module like Thank you, unfortunately I was a bit in a hurry (otherwise I'd have changed the |
From my understanding, 2and3 stubs should be ovverriden by 3, which should be overriden by 3.5 (assuming 3.5)
After updating to Mypy 0.4.4 (from 0.4.1) though I get a new spurious error:
The code for itemgetter here seems correct:
https://github.com/python/typeshed/blob/master/stdlib/3/_operator.pyi
But here instead it's picking up
https://github.com/python/typeshed/blob/master/stdlib/2and3/operator.pyi
Why is the code from 2and3 used, instead of the more specific one?
The text was updated successfully, but these errors were encountered: