enumerate
doesn't understand classes with __len__ and __getitem__
#13451
Labels
bug
mypy got something wrong
Bug Report
Hi! This is my first bug report. Let's start with an example:
I don't expect
text
to beAny
.this is mypy 0.971
Yes, I can add
__iter__
, understand whatIterable[<nothing>]
mean and fix the issue on my side, BUT! I found this trying to useQPolygonF
class from PyQt5 that is defined exactly like this and this is perfectly valid python, so somehow I'm sure something must be done on mypy side.The text was updated successfully, but these errors were encountered: