From 89771bbc05c818698e03ef0c142871b6775cb081 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 12 Oct 2024 19:10:20 +0000 Subject: [PATCH] style: pre-commit fixes --- tests/test_type_caster_incomplete_type.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_type_caster_incomplete_type.cpp b/tests/test_type_caster_incomplete_type.cpp index dd51890d8..968ce6476 100644 --- a/tests/test_type_caster_incomplete_type.cpp +++ b/tests/test_type_caster_incomplete_type.cpp @@ -17,9 +17,8 @@ class type_caster { 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; } @@ -43,7 +42,6 @@ private: } // namespace pybind11 TEST_SUBMODULE(type_caster_incomplete_type, m) { - m.def("rtrn_fwd_decl_type_ptr", - []() { return reinterpret_cast(0); }); + m.def("rtrn_fwd_decl_type_ptr", []() { return reinterpret_cast(0); }); m.def("pass_fwd_decl_type_ptr", [](ForwardDeclaredType *) {}); }