Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@cached_property
def prop(self):
return 1
@cached_property
def prop(self):
return 1
def test_reify_class():
class A:
def __init__(self):
self._cache = {}
@cached_property
def prop(self):
"""Docstring."""
return 1
assert isinstance(A.prop, cached_property)
assert "Docstring." == A.prop.__doc__