[issue34995] functools.cached_property does not maintain the wrapped method's __isabstractmethod__
INADA Naoki
report at bugs.python.org
Sat Nov 17 01:11:43 EST 2018
INADA Naoki <songofacandy at gmail.com> added the comment:
> Guido van Rossum <guido at python.org> added the comment:
>
> This is runtime behavior, mypy doesn't care either way. It triggers on the
> presence of the decorator, not on what attributes it sets at runtime on the
> object.
>
>
But it's only motivation is static hinting.
My point is, is cached_property important static hint?
For example, do you want support cached_property in mypy Protocol with same
semantics?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34995>
_______________________________________
More information about the Python-bugs-list
mailing list