Incorrect mypy behaviour when inheriting a generic with List[T] field #10986
Labels
bug
mypy got something wrong
topic-dataclasses
topic-inheritance
Inheritance and incompatible overrides
I have the following sample of code:
mypy 0.910 gives
error: List item 0 has incompatible type "int"; expected "T"
that is not what I expected since I declaredx
asList[int]
with generic inheritance.The text was updated successfully, but these errors were encountered: