[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__

Guido van Rossum report at bugs.python.org
Sat Nov 17 01:31:19 EST 2018


Guido van Rossum <guido at python.org> added the comment:

In mypy there would be no difference between a cached property and a normal one -- the type is the same either way. Caching is the quintessential runtime behavior -- it shouldn't matter for semantics, only for performance. (True, sometimes there are more subtle semantics that require caching past the first call, but this is beyond the realm of a type checker, which cannot typically tell whether a call is the first or not.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34995>
_______________________________________


More information about the Python-bugs-list mailing list