-
-
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
Issue with annotation six.byte2int starting 1.16.21.2 #9145
Comments
Cc. @Avasam |
The example can be simplified to:
Ref python/mypy#14032 Update: Seems to be caused by outdated typeshed stub. This can be discussed in the PR below. |
@levincarmel what version of mypy are you running? |
Hi,
Starting 1.16.21.2 we have an issue with mypy failing for annotations of
six.byte2int
.We had this method:
which was called the following way:
pp_fingerprint = ":".join("{:02x}".format(byte2int(c)) for c in fingerprint).upper()
This used to work until now, but now we get this failure:
Argument 1 to "byte2int" has incompatible type "bytes"; expected "SupportsGetItem[int, <nothing>]"
Is this an issue with this release? Or are we supposed to fix our annotations in some way?
Thanks in advance!
The text was updated successfully, but these errors were encountered: