|
Expand Up
|
@@ -937,7 +937,6 @@ def too_few_arguments( |
|
|
else: |
|
|
msg = "Too few arguments" + for_function(callee) |
|
|
self.fail(msg, context, code=codes.CALL_ARG) |
|
|
self.note_defined_here(callee, context) |
|
|
|
|
|
def missing_named_argument(self, callee: CallableType, context: Context, name: str) -> None: |
|
|
msg = f'Missing named argument "{name}"' + for_function(callee) |
|
Expand All
|
@@ -950,7 +949,6 @@ def too_many_arguments(self, callee: CallableType, context: Context) -> None: |
|
|
else: |
|
|
msg = "Too many arguments" + for_function(callee) |
|
|
self.fail(msg, context, code=codes.CALL_ARG) |
|
|
self.note_defined_here(callee, context) |
|
|
self.maybe_note_about_special_args(callee, context) |
|
|
|
|
|
def too_many_arguments_from_typed_dict( |
|
Expand All
|
@@ -972,7 +970,6 @@ def too_many_positional_arguments(self, callee: CallableType, context: Context) |
|
|
else: |
|
|
msg = "Too many positional arguments" + for_function(callee) |
|
|
self.fail(msg, context) |
|
|
self.note_defined_here(callee, context) |
|
|
self.maybe_note_about_special_args(callee, context) |
|
|
|
|
|
def maybe_note_about_special_args(self, callee: CallableType, context: Context) -> None: |
|
Expand Down
|
|