mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-104600: Make function.__type_params__ writable (#104601)
This commit is contained in:
parent
f7835fc7e9
commit
3fadd7d585
6 changed files with 39 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue