Subclasses cannot use properties to override super-class attributes #6759
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-0-high
refactoring
Changing mypy's internals
When subclassing, overriding a class attribute with a property with the same type causes type checking failures. This is (I think?) a fairly common way for subclasses to introduce dynamic behaviour transparently to consumers, so my expectation is that this would not cause failures.
Python Code
mypy Output
Versions
The text was updated successfully, but these errors were encountered: