mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-107995: Fix doctest collection of functools.cached_property objects (#107996)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
28cab71f95
commit
9bb576cb07
5 changed files with 22 additions and 0 deletions
|
@ -984,6 +984,7 @@ class cached_property:
|
|||
self.func = func
|
||||
self.attrname = None
|
||||
self.__doc__ = func.__doc__
|
||||
self.__module__ = func.__module__
|
||||
|
||||
def __set_name__(self, owner, name):
|
||||
if self.attrname is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue