Can't declare a property setter on a child class without declaring getter there as well #4644
Labels
feature
priority-1-normal
topic-descriptors
Properties, class vs. instance attributes
topic-inheritance
Inheritance and incompatible overrides
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
If I declare a property getter on a base class, I can't declare a setter on a child class without having to add a getter there as well.
For example,
is a valid python code, but mypy fails with
"Callable[[A], int]" has no attribute "setter"
The text was updated successfully, but these errors were encountered: