class documentation
class NestedAnnotation: (source)
Known subclasses: pytype.abstract._classes.ParameterizedClass
, pytype.abstract._typing.Union
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 |
Undocumented |
Method | init |
Undocumented |
Method | replace |
Undocumented |
Method | update |
Undocumented |
Class Variable | overloads |
Undocumented |
Instance Variable | processed |
Undocumented |
Property | formal |
See BaseValue.formal. |
Instance Variable | _seen |
Undocumented |