Skip to content

Commit e173bd0

Browse files
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.
1 parent 44472d0 commit e173bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peps/pep-0695.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ is a generator or coroutine.
602602
Accessing Type Parameters at Runtime
603603
------------------------------------
604604

605-
A new read-only attribute called ``__type_params__`` is available on generic classes,
605+
A new attribute called ``__type_params__`` is available on generic classes,
606606
functions, and type aliases. This attribute is a tuple of the
607607
type parameters that parameterize the class, function, or alias.
608608
The tuple contains ``TypeVar``, ``ParamSpec``, and ``TypeVarTuple`` instances.

0 commit comments

Comments
 (0)