@@ -2393,28 +2393,50 @@ def check_call_arguments(
23932393 )
23942394 self .msg .fail (
23952395 f'Argument { shift_position } to "{ func_name } " has incompatible type '
2396- f' { actual_str } ; expected { expected_str } '
2396+ f" { actual_str } ; expected { expected_str } "
23972397 f'(did you forget argument "{ param_name } "?)' ,
23982398 context ,
23992399 code = codes .CALL_ARG ,
24002400 )
24012401 else :
24022402 self .check_argument_count (
2403- callee , arg_types , arg_kinds , arg_names , formal_to_actual ,
2404- context , object_type , callable_name ,
2403+ callee ,
2404+ arg_types ,
2405+ arg_kinds ,
2406+ arg_names ,
2407+ formal_to_actual ,
2408+ context ,
2409+ object_type ,
2410+ callable_name ,
24052411 )
24062412 self .check_argument_types (
2407- arg_types , arg_kinds , args , callee , formal_to_actual , context ,
2408- object_type = object_type
2413+ arg_types ,
2414+ arg_kinds ,
2415+ args ,
2416+ callee ,
2417+ formal_to_actual ,
2418+ context ,
2419+ object_type = object_type ,
24092420 )
24102421 elif has_type_errors :
24112422 self .check_argument_count (
2412- callee , arg_types , arg_kinds , arg_names , formal_to_actual ,
2413- context , object_type , callable_name ,
2423+ callee ,
2424+ arg_types ,
2425+ arg_kinds ,
2426+ arg_names ,
2427+ formal_to_actual ,
2428+ context ,
2429+ object_type ,
2430+ callable_name ,
24142431 )
24152432 self .check_argument_types (
2416- arg_types , arg_kinds , args , callee , formal_to_actual , context ,
2417- object_type = object_type
2433+ arg_types ,
2434+ arg_kinds ,
2435+ args ,
2436+ callee ,
2437+ formal_to_actual ,
2438+ context ,
2439+ object_type = object_type ,
24182440 )
24192441 else :
24202442 self .check_argument_count (
0 commit comments