class documentation

An annotation containing inner types, such as a Union. For example, in `Union[int, str]`, `int` and `str` are the annotation's inner types. Classes that inherit from this mixin should implement: get_inner_types(): Returns a sequence of (key, typ) of the inner types. A Union's inner types can be keyed on their position: `[(0, int), (1, str)]`. update_inner_type(key, typ): Updates the inner type with the given key. replace(inner_types): Returns a new annotation that is a copy of the current one but with the given inner types, again as a (key, typ) sequence.

Method get_inner_types Undocumented
Method init_mixin Undocumented
Method replace Undocumented
Method update_inner_type Undocumented
Class Variable overloads Undocumented
Instance Variable processed Undocumented
Property formal See BaseValue.formal.
Instance Variable _seen_for_formal Undocumented
def init_mixin(self): (source)

Undocumented

def replace(self, inner_types): (source)
def update_inner_type(self, key, typ): (source)
overloads: tuple[str, ...] = (source)

Undocumented

processed: bool = (source)

Undocumented

See BaseValue.formal.

_seen_for_formal: bool = (source)

Undocumented