gh-104600: Make function.__type_params__ writable (#104601)

This commit is contained in:
Jelle Zijlstra 2023-05-18 16:45:37 -07:00 committed by GitHub
parent f7835fc7e9
commit 3fadd7d585
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 5 deletions

View file

@ -30,7 +30,7 @@ from types import GenericAlias
# wrapper functions that can handle naive introspection
WRAPPER_ASSIGNMENTS = ('__module__', '__name__', '__qualname__', '__doc__',
'__annotations__')
'__annotations__', '__type_params__')
WRAPPER_UPDATES = ('__dict__',)
def update_wrapper(wrapper,
wrapped,