You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with annotation six.byte2int starting 1.16.21.2 #9145
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?
Weird mypy-specific issue that I ironically didn't catch because I was specifically trying to not use bytes.
An overload easily fixes this, PR incoming.
Ref python/mypy#14032because I don't know if it's the same issue we were having with itemgetter.
Update: Seems to be caused by outdated typeshed stub. This can be discussed in the PR below.
Activity
AlexWaygood commentedon Nov 10, 2022
Cc. @Avasam
Avasam commentedon Nov 10, 2022
The example can be simplified to:
Weird mypy-specific issue that I ironically didn't catch because I was specifically trying to not use bytes.An overload easily fixes this, PR incoming.
Ref python/mypy#14032
because I don't know if it's the same issue we were having with itemgetter.Update: Seems to be caused by outdated typeshed stub. This can be discussed in the PR below.
JelleZijlstra commentedon Nov 10, 2022
@levincarmel what version of mypy are you running?