Skip to content

Commit 6bb404d

Browse files
style: pre-commit fixes
1 parent 6159c22 commit 6bb404d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/test_opaque_types.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,14 @@ TEST_SUBMODULE(opaque_types, m) {
109109
py::class_<VecArray3d>(m, "VecArray3d")
110110
.def(py::init<>())
111111
.def("push_back", [](VecArray3d &v, const Array3d &a) { v.push_back(a); })
112-
.def("__getitem__",
113-
[](const VecArray3d &v, std::size_t i) -> const Array3d & {
114-
if (i >= v.size()) {
115-
throw py::index_error();
116-
}
117-
return v[i];
118-
},
119-
py::return_value_policy::reference_internal)
112+
.def(
113+
"__getitem__",
114+
[](const VecArray3d &v, std::size_t i) -> const Array3d & {
115+
if (i >= v.size()) {
116+
throw py::index_error();
117+
}
118+
return v[i];
119+
},
120+
py::return_value_policy::reference_internal)
120121
.def("__len__", [](const VecArray3d &v) { return v.size(); });
121122
}

0 commit comments

Comments
 (0)