From ce0d0b65f0814a3059da47c47cb7a0a583f65950 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 23 Feb 2024 06:36:56 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mypy/plugins/functools.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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", [])