PyDocs

Nav

Development Tools

TypeAliasType.__type_params__

typing

attribute of TypeAliasType
The type parameters of the type alias, or an empty tuple if the alias is not generic:
1 Example
>>> type ListOrSet[T] = list[T] | set[T]
>>> ListOrSet.__type_params__
(T,)
>>> type NotGeneric = int
>>> NotGeneric.__type_params__
()
from the Python docs
See Also
No see-alsos for typing/TypeAliasType.__type_params__
0 Notes
No notes for TypeAliasType.__type_params__