MCPcopy Index your code
hub / github.com/python/mypy / too_many_positional_arguments

Method too_many_positional_arguments

mypy/messages.py:968–974  ·  view source on GitHub ↗
(self, callee: CallableType, context: Context)

Source from the content-addressed store, hash-verified

966 self.fail(msg, context)
967
968 def too_many_positional_arguments(self, callee: CallableType, context: Context) -> None:
969 if self.prefer_simple_messages():
970 msg = "Too many positional arguments"
971 else:
972 msg = "Too many positional arguments" + for_function(callee)
973 self.fail(msg, context)
974 self.maybe_note_about_special_args(callee, context)
975
976 def maybe_note_about_special_args(self, callee: CallableType, context: Context) -> None:
977 if self.prefer_simple_messages():

Callers 1

check_argument_countMethod · 0.80

Calls 4

failMethod · 0.95
for_functionFunction · 0.85

Tested by

no test coverage detected