diff options
author | Tyler Smart <40041862+tjsmart@users.noreply.github.com> | 2023-08-18 08:44:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-18 15:44:38 +0000 |
commit | 9bb576cb07b42f34fd882b8502642b024f771c62 (patch) | |
tree | d71855e0af7ce5382493849fdd9b2ca7cf34ca29 /Lib/functools.py | |
parent | 28cab71f954f3a14de9f474ce9c4abbd23c97862 (diff) | |
download | cpython-9bb576cb07b42f34fd882b8502642b024f771c62.tar.gz cpython-9bb576cb07b42f34fd882b8502642b024f771c62.zip |
gh-107995: Fix doctest collection of functools.cached_property objects (#107996)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Lib/functools.py')
-rw-r--r-- | Lib/functools.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/functools.py b/Lib/functools.py index be44ccdae6b..a2fc28779db 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -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: |