Skip to content

Commit b76f79e

Browse files
style: pre-commit fixes
1 parent c03b578 commit b76f79e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

include/pybind11/pybind11.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2014,7 +2014,8 @@ struct property_cpp_function_sh_raw_ptr_member {
20142014
template <typename T, typename D>
20152015
struct property_cpp_function_sh_member_held_by_value {
20162016
static bool use_smart_holder_member_aliasing() {
2017-
type_info *member_tinfo = get_type_info(typeid(intrinsic_t<D>), /*throw_if_missing=*/false);
2017+
type_info *member_tinfo
2018+
= get_type_info(typeid(intrinsic_t<D>), /*throw_if_missing=*/false);
20182019
return member_tinfo != nullptr
20192020
&& member_tinfo->holder_enum_v == holder_enum_t::smart_holder;
20202021
}

tests/test_class_sh_property.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ TEST_SUBMODULE(class_sh_property, m) {
115115
.def(py::init<>())
116116
.def_readwrite("level", &HolderWithEnum::level);
117117

118-
py::class_<LegacyThing>(m, "LegacyThing").def(py::init<>()).def_readwrite("value", &LegacyThing::value);
118+
py::class_<LegacyThing>(m, "LegacyThing")
119+
.def(py::init<>())
120+
.def_readwrite("value", &LegacyThing::value);
119121

120122
py::classh<HolderWithLegacyMember>(m, "HolderWithLegacyMember")
121123
.def(py::init<>())

tests/test_class_sh_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import pytest
66

7-
import env # noqa: F401
7+
import env
88
from pybind11_tests import class_sh_property as m
99

1010

0 commit comments

Comments
 (0)