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
Hi,
Starting 1.16.21.2 we have an issue with mypy failing for annotations of six.byte2int.
We had this method:
def byte2int(c: Union[bytes, int]) -> int:
if isinstance(c, bytes):
return six.byte2int(c)
return c
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:
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: