API reference
python:astx:astx.types.UnionType
class UnionType
UnionType(members: Iterable[astx.DataType], *, alias_name: str | None = None)
Source: packages/astx/src/astx/types/generic.py:18
Declared as: python:astx:astx.types.generic.UnionType
Finite compile-time union type domain.
Represent one union of concrete type references that semantic analysis may enumerate as a finite type domain.
Attributes
-
members — Type: tuple[astx.DataType, Ellipsis]
-
alias_name — Type: str | None
Methods
-
__init__ — Initialize one finite union type.
-
__str__ — Render one finite union type as text.
-
get_struct — Build one repr structure for a finite union type.
Attributes
-
members —