colour.io.ComponentsFichet2021#
- colour.io.ComponentsFichet2021#
The type of parameterized generics.
That is, for example, type(List[int]) is _GenericAlias.
Objects which are instances of this class include: * Parameterized container types, e.g. Tuple[int], List[int].
Note that native container types, e.g. tuple, list, use types.GenericAlias instead.
- Parameterized classes:
class C[T]: pass # C[int] is a _GenericAlias
Callable aliases, generic Callable aliases, and parameterized Callable aliases:
T = TypeVar(‘T’) # _CallableGenericAlias inherits from _GenericAlias. A = Callable[[], None] # _CallableGenericAlias B = Callable[[T], None] # _CallableGenericAlias C = B[int] # _CallableGenericAlias
- Parameterized Final, ClassVar, TypeForm, TypeGuard, and TypeIs:
# All _GenericAlias Final[int] ClassVar[float] TypeForm[bytearray] TypeGuard[bool] TypeIs[range]
Note that instances of this class are not classes (e.g by inspect.isclass), even though they behave like them.
alias of
Dict[str|float,Tuple[ndarray[tuple[Any, …],dtype[float16|float32|float64]],ndarray[tuple[Any, …],dtype[float16|float32|float64]]]]