File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments