False negative for restricted self in subclass #7861
Labels
bug
mypy got something wrong
priority-1-normal
topic-inheritance
Inheritance and incompatible overrides
topic-self-types
Types for self
This currently passes, but the code is unsafe:
On one hand it is a very rare situation, on the other hand in view of making explicit self-types a more "official" feature (see #7860) we might want to fix this.
Also it would be great to fix this in a consistent way, so that the fix also works for same issue with multiple inheritance without code duplication (see #7724).
The text was updated successfully, but these errors were encountered: