mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
style: pre-commit fixes
This commit is contained in:
parent
f40ffc0262
commit
89771bbc05
@ -17,9 +17,8 @@ class type_caster<ForwardDeclaredType> {
|
|||||||
public:
|
public:
|
||||||
static constexpr auto name = const_name("object");
|
static constexpr auto name = const_name("object");
|
||||||
|
|
||||||
static handle cast(ForwardDeclaredType * /*src*/,
|
static handle
|
||||||
return_value_policy /*policy*/,
|
cast(ForwardDeclaredType * /*src*/, return_value_policy /*policy*/, handle /*parent*/) {
|
||||||
handle /*parent*/) {
|
|
||||||
return py::none().release(); // TODO: Build and return capsule with src pointer;
|
return py::none().release(); // TODO: Build and return capsule with src pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +42,6 @@ private:
|
|||||||
} // namespace pybind11
|
} // namespace pybind11
|
||||||
|
|
||||||
TEST_SUBMODULE(type_caster_incomplete_type, m) {
|
TEST_SUBMODULE(type_caster_incomplete_type, m) {
|
||||||
m.def("rtrn_fwd_decl_type_ptr",
|
m.def("rtrn_fwd_decl_type_ptr", []() { return reinterpret_cast<ForwardDeclaredType *>(0); });
|
||||||
[]() { return reinterpret_cast<ForwardDeclaredType *>(0); });
|
|
||||||
m.def("pass_fwd_decl_type_ptr", [](ForwardDeclaredType *) {});
|
m.def("pass_fwd_decl_type_ptr", [](ForwardDeclaredType *) {});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user