ID EN
Built-in Types

__parameters__

Python 3.11

This attribute is a lazily computed tuple (possibly empty) of unique type variables found in __args__:

Syntax

PYTHON
genericalias.__parameters__

Examples

Example 1
PYTHON
>>> from typing import TypeVar

>>> T = TypeVar('T')
>>> list[T].__parameters__
(~T,)

See Also

typing.ParamSpec typing.ParamSpec