From 63f9438bfd08f6303e0b67878b46063c011b8162 Mon Sep 17 00:00:00 2001 From: STerliakov Date: Wed, 21 Aug 2024 20:29:47 +0200 Subject: [PATCH] Remove parameters thaat are no longer used --- mypy/checkexpr.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index d9729384c465..000a17693e9d 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -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, @@ -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.