AliasEntry

class AliasEntry(annotation: Any, alias_str: str)[source]

Bases: NamedTuple

A pairing of a live annotation object with its stub alias string.

Examples

>>> entry = AliasEntry(annotation=str | float | int, alias_str="types.Length")
>>> entry.alias_str
'types.Length'
annotation: Any

Alias for field number 0

alias_str: str

Alias for field number 1

See also

Public API reference — overview of all public names.