Skip to content

Commit ce0d0b6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 57848ea commit ce0d0b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mypy/plugins/functools.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from __future__ import annotations
44

55
from typing import Final, NamedTuple
6-
from mypy.argmap import map_actuals_to_formals
76

87
import mypy.checker
98
import mypy.plugin
9+
from mypy.argmap import map_actuals_to_formals
1010
from mypy.nodes import ARG_POS, ARG_STAR2, ArgKind, Argument, FuncItem, Var
1111
from mypy.plugins.common import add_method_to_class
1212
from mypy.types import (
@@ -191,7 +191,10 @@ def partial_new_callback(ctx: mypy.plugin.FunctionContext) -> Type:
191191
ret_type = fn_type.ret_type # same kind of hack as above
192192

193193
partially_applied = fn_type.copy_modified(
194-
arg_types=partial_types, arg_kinds=partial_kinds, arg_names=partial_names, ret_type=ret_type
194+
arg_types=partial_types,
195+
arg_kinds=partial_kinds,
196+
arg_names=partial_names,
197+
ret_type=ret_type,
195198
)
196199

197200
ret = ctx.api.named_generic_type("functools.partial", [])

0 commit comments

Comments
 (0)