mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
gh-132493: Avoid eager evaluation of annotations in @reprlib.recursive_repr() (#133411)
This commit is contained in:
parent
b936ccdb6f
commit
dbee142a01
3 changed files with 19 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ def wrapper(self):
|
|||
wrapper.__doc__ = getattr(user_function, '__doc__')
|
||||
wrapper.__name__ = getattr(user_function, '__name__')
|
||||
wrapper.__qualname__ = getattr(user_function, '__qualname__')
|
||||
wrapper.__annotations__ = getattr(user_function, '__annotations__', {})
|
||||
wrapper.__annotate__ = getattr(user_function, '__annotate__', None)
|
||||
wrapper.__type_params__ = getattr(user_function, '__type_params__', ())
|
||||
wrapper.__wrapped__ = user_function
|
||||
return wrapper
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue