false positive on interaction between @property
, @lru_cache
, and inheritance
#16855
Labels
bug
mypy got something wrong
Bug Report
My thanks to @hauntsaninja for their excellent work on #5858! However, I suspect there's a related issue with the combination of
@lru_cache
and@property
where inheritance is at play:To Reproduce
Gists:
mypy-play.net
pyright-play.net (pyright handles this correctly, IMO)
Expected Behavior
The tool should accept the code without comment.
Actual Behavior
The tool believes the type of the inherited
@property
is incompatible with the definition in the base class.Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: