From 0f5ec0a87e3d3879cd70740422adf3e3728a9d84 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Sun, 19 Mar 2017 12:36:18 -0300 Subject: [PATCH] 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). --- include/pybind11/pybind11.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 9c7c11b4..0c438505 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 {