This attribute is a lazily computed tuple (possibly empty) of unique type variables found in __args__:
genericalias.__parameters__
>>> from typing import TypeVar >>> T = TypeVar('T') >>> list[T].__parameters__ (~T,)