Function | clean_duplicates_mro |
Undocumented |
Function | clean_typing_generic_mro |
No summary |
Constant | BUILTIN_DESCRIPTORS |
Undocumented |
Constant | EXCEPTION_BASE_CLASSES |
Undocumented |
Constant | ITER_METHODS |
Undocumented |
Constant | T |
Undocumented |
Variable | objects |
Undocumented |
Class | _ListComp |
Class representing an ast.ListComp node. |
Function | _c3_merge |
Merges MROs in sequences to a single MRO using the C3 algorithm. |
Function | _class_type |
return a ClassDef node type to differ metaclass and exception from 'regular' classes |
Function | _infer_decorator_callchain |
Detect decorator call chaining and see if the end result is a static or a classmethod. |
Function | _rec_get_names |
return a list of all argument names |
A class can inherit from typing.Generic directly, as base, and as base of bases. The merged MRO must however only contain the last entry. To prepare for _c3_merge, remove some typing.Generic entries from sequences if multiple are present.
This method will check if Generic is in inferred_bases and also part of bases_mro. If true, remove it from inferred_bases as well as its entry the bases_mro.
Format sequences: [[self]] + bases_mro + [inferred_bases]
Parameters | |
sequences:List[ | Undocumented |
Undocumented
Value |
|
Merges MROs in sequences to a single MRO using the C3 algorithm.
Adapted from http://www.python.org/download/releases/2.3/mro/.