@@ -2398,28 +2398,50 @@ def check_call_arguments(
23982398 )
23992399 self .msg .fail (
24002400 f'Argument { shift_position } to "{ func_name } " has incompatible type '
2401- f' { actual_str } ; expected { expected_str } '
2401+ f" { actual_str } ; expected { expected_str } "
24022402 f'(did you forget argument "{ param_name } "?)' ,
24032403 context ,
24042404 code = codes .CALL_ARG ,
24052405 )
24062406 else :
24072407 self .check_argument_count (
2408- callee , arg_types , arg_kinds , arg_names , formal_to_actual ,
2409- context , object_type , callable_name ,
2408+ callee ,
2409+ arg_types ,
2410+ arg_kinds ,
2411+ arg_names ,
2412+ formal_to_actual ,
2413+ context ,
2414+ object_type ,
2415+ callable_name ,
24102416 )
24112417 self .check_argument_types (
2412- arg_types , arg_kinds , args , callee , formal_to_actual , context ,
2413- object_type = object_type
2418+ arg_types ,
2419+ arg_kinds ,
2420+ args ,
2421+ callee ,
2422+ formal_to_actual ,
2423+ context ,
2424+ object_type = object_type ,
24142425 )
24152426 elif has_type_errors :
24162427 self .check_argument_count (
2417- callee , arg_types , arg_kinds , arg_names , formal_to_actual ,
2418- context , object_type , callable_name ,
2428+ callee ,
2429+ arg_types ,
2430+ arg_kinds ,
2431+ arg_names ,
2432+ formal_to_actual ,
2433+ context ,
2434+ object_type ,
2435+ callable_name ,
24192436 )
24202437 self .check_argument_types (
2421- arg_types , arg_kinds , args , callee , formal_to_actual , context ,
2422- object_type = object_type
2438+ arg_types ,
2439+ arg_kinds ,
2440+ args ,
2441+ callee ,
2442+ formal_to_actual ,
2443+ context ,
2444+ object_type = object_type ,
24232445 )
24242446 else :
24252447 self .check_argument_count (
0 commit comments