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: FunctionDef

A 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.

qname() str[source]

Get the ‘qualified’ name of the node.

For example: module.name, module.class.name …

Returns:

The qualified name.

Return type:

str