summaryrefslogtreecommitdiff
path: root/Lib/reprlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/reprlib.py')
-rw-r--r--Lib/reprlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/reprlib.py b/Lib/reprlib.py
index 7b5c436c39..9fee3046c6 100644
--- a/Lib/reprlib.py
+++ b/Lib/reprlib.py
@@ -30,6 +30,7 @@ def recursive_repr(fillvalue='...'):
wrapper.__module__ = getattr(user_function, '__module__')
wrapper.__doc__ = getattr(user_function, '__doc__')
wrapper.__name__ = getattr(user_function, '__name__')
+ wrapper.__name__ = getattr(user_function, '__annotations__', {})
return wrapper
return decorating_function