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

Method too_many_arguments

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

Source from the content-addressed store, hash-verified

945 self.note_defined_here(callee, context)
946
947 def too_many_arguments(self, callee: CallableType, context: Context) -> None:
948 if self.prefer_simple_messages():
949 msg = "Too many arguments"
950 else:
951 msg = "Too many arguments" + for_function(callee)
952 self.fail(msg, context, code=codes.CALL_ARG)
953 self.maybe_note_about_special_args(callee, context)
954
955 def too_many_arguments_from_typed_dict(
956 self, callee: CallableType, arg_type: TypedDictType, context: Context

Calls 4

failMethod · 0.95
for_functionFunction · 0.85

Tested by

no test coverage detected