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 Oct 12, 2024
1 parent f40ffc0 commit 89771bb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_type_caster_incomplete_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ class type_caster<ForwardDeclaredType> {
public:
static constexpr auto name = const_name("object");

static handle cast(ForwardDeclaredType * /*src*/,
return_value_policy /*policy*/,
handle /*parent*/) {
static handle
cast(ForwardDeclaredType * /*src*/, return_value_policy /*policy*/, handle /*parent*/) {
return py::none().release(); // TODO: Build and return capsule with src pointer;
}

Expand All @@ -43,7 +42,6 @@ class type_caster<ForwardDeclaredType> {
} // namespace pybind11

TEST_SUBMODULE(type_caster_incomplete_type, m) {
m.def("rtrn_fwd_decl_type_ptr",
[]() { return reinterpret_cast<ForwardDeclaredType *>(0); });
m.def("rtrn_fwd_decl_type_ptr", []() { return reinterpret_cast<ForwardDeclaredType *>(0); });
m.def("pass_fwd_decl_type_ptr", [](ForwardDeclaredType *) {});
}

0 comments on commit 89771bb

Please sign in to comment.