diff --git a/Lib/functools.py b/Lib/functools.py index 9c8bef2a2de..d7ef597d4aa 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -1193,7 +1193,7 @@ class cached_property: # copy across the annotation for runtime introspection try: - prop_ann = self.fget.__annotations__['return'] + prop_ann = self.func.__annotations__['return'] except KeyError: return