mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 07:02:11 +00:00
Error message wording tweak
py::arg() doesn't only specify named arguments anymore, so the error message was misleading (e.g. when using `py::arg().noconvert()` and forgetting `py::arg()` for a second positional argument).
This commit is contained in:
parent
5a9247872d
commit
0f5ec0a87e
@ -122,7 +122,7 @@ protected:
|
||||
>;
|
||||
|
||||
static_assert(detail::expected_num_args<Extra...>(sizeof...(Args), cast_in::has_args, cast_in::has_kwargs),
|
||||
"The number of named arguments does not match the function signature");
|
||||
"The number of argument annotations does not match the number of function arguments");
|
||||
|
||||
/* Dispatch code which converts function arguments and performs the actual function call */
|
||||
rec->impl = [](detail::function_call &call) -> handle {
|
||||
|
Loading…
Reference in New Issue
Block a user