mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 09:34:46 +00:00
style: pre-commit fixes
This commit is contained in:
parent
4aaf8bb35f
commit
ce5e7be7f8
@ -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",
|
||||||
|
[](const ArgsSubclass &args, const KWArgsSubclass &kwargs) {
|
||||||
return py::make_tuple(args, kwargs);
|
return py::make_tuple(args, kwargs);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user