Mypy thinks that class
statement always produces some class
#13609
Labels
bug
mypy got something wrong
class
statement always produces some class
#13609
At runtime
X
is not a class, it is instance ofslice
, but mypy thinks thatclass
statement always produces some class.Expected Behavior
Any
andAny
Actual Behavior
X
anddef (...) -> X
, what is wrongYour Environment
mypy 0.971 (compiled: yes)
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: