| 2365 | } |
| 2366 | |
| 2367 | [[noreturn]] static void nameless_argument_error() { |
| 2368 | throw type_error( |
| 2369 | "Got kwargs without a name; only named arguments " |
| 2370 | "may be passed via py::arg() to a python function call. " |
| 2371 | "(#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)"); |
| 2372 | } |
| 2373 | [[noreturn]] static void nameless_argument_error(const std::string &type) { |
| 2374 | throw type_error("Got kwargs without a name of type '" + type |
| 2375 | + "'; only named " |