[stubgen] functools.cached_property
is not supported
#14980
Labels
bug
mypy got something wrong
topic-descriptors
Properties, class vs. instance attributes
topic-stubgen
After #8913 mypy can understand that
@cached_property
is aproperty
.So, I think that
stubgen
must reflect that. Right now if you runstubgen
on this code:You will get:
This is incorrect, because it turns a property into a method.
But, ideally you should get:
I already have a working prototype of the solution. Please, feel free to comment on the PR :)
The text was updated successfully, but these errors were encountered: