Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 23, 2024
1 parent 57848ea commit ce0d0b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mypy/plugins/functools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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", [])
Expand Down

0 comments on commit ce0d0b6

Please sign in to comment.