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

Methods

Attributes

Search documentation

Type to search.