-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Type error: sys.version_info == (3, 4)
#672
Comments
I don't understand what you're trying to say, unless you just mean that the code in importlib/abc.pyi is wrong -- it should be |
Yes, that's what I mean. |
Can you submit a PR to fix the bug here?
…--Guido (mobile)
|
Done (#673). |
gvanrossum
pushed a commit
that referenced
this issue
Nov 9, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have tried changing the signature of
object.__eq__
to(T, T)->bool
, and mypy warns about the comparison in importlib/abc.pyi:_version_info
subtypesTuple[int, int, int, str, int]
and can never be equal to (3, 4).I think the generic signature is helpful, even though it's overly restrictive.
The text was updated successfully, but these errors were encountered: