module documentation

Special methods checker and helper function's module.

Class SpecialMethodsChecker Checker which verifies that special methods are implemented correctly.
Constant NEXT_METHOD Undocumented
Function _safe_infer_call_result Safely infer the return value of a function.
NEXT_METHOD: str = (source)

Undocumented

Value
'__next__'
def _safe_infer_call_result(node: nodes.FunctionDef, caller: nodes.FunctionDef, context: InferenceContext|None = None) -> InferenceResult|None: (source)

Safely infer the return value of a function. Returns None if inference failed or if there is some ambiguity (more than one node has been inferred). Otherwise, returns inferred value.