TypeAlias¶
- class astroid.nodes.TypeAlias(lineno: int, col_offset: int, parent: NodeNG, *, end_lineno: int, end_col_offset: int)[source]¶
Bases:
AssignTypeNode
,Statement
Class representing a
ast.TypeAlias
node.>>> import astroid >>> node = astroid.extract_node('type Point = tuple[float, float]') >>> node <TypeAlias l.1 at 0x7f23b2e4e198>
- assigned_stmts(**kwargs: _P.kwargs) Generator[InferenceResult] ¶
- name: AssignName¶
- postinit(*, name: AssignName, type_params: list[TypeVar | ParamSpec | TypeVarTuple], value: NodeNG) None [source]¶
- type_params: list[TypeVar | ParamSpec | TypeVarTuple]¶