diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 9c7c11b46..0c4385052 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -122,7 +122,7 @@ protected: >; static_assert(detail::expected_num_args(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 {