Skip to content

Commit 7a42fa5

Browse files
committed
switch to CALL_ARG
1 parent 7be6350 commit 7a42fa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ def too_many_positional_arguments(self, callee: CallableType, context: Context)
970970
msg = "Too many positional arguments"
971971
else:
972972
msg = "Too many positional arguments" + for_function(callee)
973-
self.fail(msg, context)
973+
self.fail(msg, context, code=codes.CALL_ARG)
974974
self.maybe_note_about_special_args(callee, context)
975975
self.note_defined_here(callee, context)
976976

0 commit comments

Comments
 (0)