module documentation

Hierarchy of abstract base classes, from _collections_abc.py.

Function GetSubClasses Get a reverse Python type hierarchy mapping.
Function GetSuperClasses Get a Python type hierarchy mapping.
Constant SUPERCLASSES Undocumented
def GetSubClasses(): (source)

Get a reverse Python type hierarchy mapping. This generates a dictionary that can be used to look up the (known) subclasses of a type in the abstract base class hierarchy. Returns: A dictionary mapping a type, as string, to a list of direct subclasses (also as strings). E.g. "Sized" -> ["Set", "Mapping", "MappingView", "Sequence"].

def GetSuperClasses(): (source)

Get a Python type hierarchy mapping. This generates a dictionary that can be used to look up the bases of a type in the abstract base class hierarchy. Returns: A dictionary mapping a type, as string, to a list of base types (also as strings). E.g. "float" -> ["Real"].

SUPERCLASSES: dict = (source)

Undocumented

Value
{'Hashable': [],
 'Iterable': [],
 'AsyncIterable': [],
 'Sized': [],
 'Callable': [],
 'Awaitable': [],
 'Iterator': ['Iterable'],
...