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:
Jason Rhinelander 2017-03-19 12:36:18 -03:00
parent 5a9247872d
commit 0f5ec0a87e

View File

@ -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 {