PEP 695: __type_params__ attribute is writable (#3457)

Fixes python/cpython#104600.

We realized that the attribute should be writable on functions and
classes for the benefit of wrappers such as @functools.wraps.
This commit is contained in:
Jelle Zijlstra 2023-10-02 21:42:15 -07:00 committed by GitHub
parent 44472d0c0a
commit e173bd0e0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ is a generator or coroutine.
Accessing Type Parameters at Runtime
------------------------------------
A new read-only attribute called ``__type_params__`` is available on generic classes,
A new attribute called ``__type_params__`` is available on generic classes,
functions, and type aliases. This attribute is a tuple of the
type parameters that parameterize the class, function, or alias.
The tuple contains ``TypeVar``, ``ParamSpec``, and ``TypeVarTuple`` instances.