PartialFunction¶
- class astroid.objects.PartialFunction(call=None, name=None, lineno=None, col_offset=None, parent=None, *, end_lineno=None, end_col_offset=None, filled_args=None, filled_keywords=None)[source]¶
Bases:
FunctionDefA class representing partial function obtained via functools.partial.
- infer_call_result(caller: SuccessfulInferenceResult | None, context: InferenceContext | None = None) Iterator[InferenceResult][source]¶
Infer what the function returns when called.