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
What exactly is strange to you? To me all that looks as expected -- what did you expect to be different?
Assuming you're talking about the typing of _, this has nothing to do with bytes or async. It is due to the special-casing of _ as a throw-away variable.
The int type for bytes items is also correct. And mypy doesn't catch the length mismatch between b'foo' and the unpacking into two variables since the length of a sequence is not part of its type.
@gvanrossum thanks for your helpfull answer, seems that I forgot that x, y = b'xy' is correct and give two integers... Everything is actually clear and work as expected.
This behaviour is strange (mypy 0.620):
The text was updated successfully, but these errors were encountered: