module documentation

PEP484 compatibility code.

Class ConvertTypingToNative Visitor for converting PEP 484 types to native representation.
Constant ALL_TYPING_NAMES Undocumented
Constant BUILTIN_TO_TYPING Undocumented
Constant COMPAT_ITEMS Undocumented
Constant TYPING_TO_BUILTIN Undocumented
ALL_TYPING_NAMES: list[str] = (source)

Undocumented

Value
['AbstractSet',
 'AnyStr',
 'AsyncGenerator',
 'BinaryIO',
 'ByteString',
 'Callable',
 'Container',
...
BUILTIN_TO_TYPING = (source)

Undocumented

Value
{v: k for k, v in TYPING_TO_BUILTIN.items()}
COMPAT_ITEMS: list = (source)

Undocumented

Value
[('NoneType', 'bool'),
 ('None', 'bool'),
 ('int', 'float'),
 ('int', 'complex'),
 ('float', 'complex'),
 ('bytearray', 'bytes'),
 ('memoryview', 'bytes')]
TYPING_TO_BUILTIN = (source)

Undocumented

Value
{t: t.lower() for t in ['List', 'Dict', 'Tuple', 'Set', 'FrozenSet',
    'Generator', 'Type', 'Coroutine', 'AsyncGenerator']}