Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 20, 2024
1 parent 4aaf8bb commit ce5e7be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_kwargs_and_defaults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,14 @@ TEST_SUBMODULE(kwargs_and_defaults, m) {
py::arg("j"));

// Test support for args and kwargs subclasses
class ArgsSubclass: public py::args{
class ArgsSubclass : public py::args {
using py::args::args;
};
class KWArgsSubclass: public py::kwargs{
class KWArgsSubclass : public py::kwargs {
using py::kwargs::kwargs;
};
m.def("args_kwargs_subclass_function", [](const ArgsSubclass &args, const KWArgsSubclass &kwargs) {
return py::make_tuple(args, kwargs);
});
m.def("args_kwargs_subclass_function",
[](const ArgsSubclass &args, const KWArgsSubclass &kwargs) {
return py::make_tuple(args, kwargs);
});
}

0 comments on commit ce5e7be

Please sign in to comment.