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

Method unexpected_keyword_argument_for_function

mypy/messages.py:989–995  ·  view source on GitHub ↗
(
        self, for_func: str, name: str, context: Context, *, matches: list[str] | None = None
    )

Source from the content-addressed store, hash-verified

987 )
988
989 def unexpected_keyword_argument_for_function(
990 self, for_func: str, name: str, context: Context, *, matches: list[str] | None = None
991 ) -> None:
992 msg = f'Unexpected keyword argument "{name}"' + for_func
993 if matches:
994 msg += f"; did you mean {pretty_seq(matches, 'or')}?"
995 self.fail(msg, context, code=codes.CALL_ARG)
996
997 def unexpected_keyword_argument(
998 self, callee: CallableType, name: str, arg_type: Type, context: Context

Calls 2

failMethod · 0.95
pretty_seqFunction · 0.85

Tested by

no test coverage detected