Skip to content

Commit

Permalink
Remove parameters thaat are no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
sterliakov committed Aug 21, 2024
1 parent 0a658a7 commit 63f9438
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mypy/checkexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2619,7 +2619,7 @@ def check_overload_call(
arg_types = self.infer_arg_types_in_empty_context(args)
# Step 1: Filter call targets to remove ones where the argument counts don't match
plausible_targets = self.plausible_overload_call_targets(
args, arg_types, arg_kinds, arg_names, callee, context
arg_types, arg_kinds, arg_names, callee
)

# Step 2: If the arguments contain a union, we try performing union math first,
Expand Down Expand Up @@ -2777,12 +2777,10 @@ def adjust_generic_callable_params_mapping(

def plausible_overload_call_targets(
self,
args: list[Expression],
arg_types: list[Type],
arg_kinds: list[ArgKind],
arg_names: Sequence[str | None] | None,
overload: Overloaded,
context: Context,
) -> list[CallableType]:
"""Returns all overload call targets that having matching argument counts.
Expand Down

0 comments on commit 63f9438

Please sign in to comment.