Unpacking an iterable with an overloaded __iter__
method leads to variable silently being inferred as Any
#14811
Labels
__iter__
method leads to variable silently being inferred as Any
#14811
Mypy should have enough information here to infer that the type of
a
isbytes
(and should probably ask for an explicit annotation if it can't infer that, rather than silently inferringAny
).Mypy version tested on
The text was updated successfully, but these errors were encountered: