diff --git a/mypy/plugins/functools.py b/mypy/plugins/functools.py index d12bd5611b308..c18b4a66df1d6 100644 --- a/mypy/plugins/functools.py +++ b/mypy/plugins/functools.py @@ -3,10 +3,10 @@ from __future__ import annotations from typing import Final, NamedTuple -from mypy.argmap import map_actuals_to_formals import mypy.checker import mypy.plugin +from mypy.argmap import map_actuals_to_formals from mypy.nodes import ARG_POS, ARG_STAR2, ArgKind, Argument, FuncItem, Var from mypy.plugins.common import add_method_to_class from mypy.types import ( @@ -191,7 +191,10 @@ def partial_new_callback(ctx: mypy.plugin.FunctionContext) -> Type: ret_type = fn_type.ret_type # same kind of hack as above partially_applied = fn_type.copy_modified( - arg_types=partial_types, arg_kinds=partial_kinds, arg_names=partial_names, ret_type=ret_type + arg_types=partial_types, + arg_kinds=partial_kinds, + arg_names=partial_names, + ret_type=ret_type, ) ret = ctx.api.named_generic_type("functools.partial", [])