style: pre-commit fixes

This commit is contained in:
pre-commit-ci[bot] 2024-09-20 18:25:09 +00:00
parent 4aaf8bb35f
commit ce5e7be7f8

View File

@ -324,13 +324,14 @@ TEST_SUBMODULE(kwargs_and_defaults, m) {
py::arg("j")); py::arg("j"));
// Test support for args and kwargs subclasses // Test support for args and kwargs subclasses
class ArgsSubclass: public py::args{ class ArgsSubclass : public py::args {
using py::args::args; using py::args::args;
}; };
class KWArgsSubclass: public py::kwargs{ class KWArgsSubclass : public py::kwargs {
using py::kwargs::kwargs; using py::kwargs::kwargs;
}; };
m.def("args_kwargs_subclass_function", [](const ArgsSubclass &args, const KWArgsSubclass &kwargs) { m.def("args_kwargs_subclass_function",
return py::make_tuple(args, kwargs); [](const ArgsSubclass &args, const KWArgsSubclass &kwargs) {
}); return py::make_tuple(args, kwargs);
});
} }