module documentation
Special methods checker and helper function's module.
Class |
|
Checker which verifies that special methods are implemented correctly. |
Constant | NEXT |
Undocumented |
Function | _safe |
Safely infer the return value of a function. |
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.