Skip to content

Commit e8d98f8

Browse files
style: pre-commit fixes
1 parent 0290852 commit e8d98f8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

include/pybind11/numpy.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ struct npy_api {
266266
module_ m;
267267
try {
268268
m = module_::import("numpy._core.multiarray");
269-
} catch (error_already_set&) {
269+
} catch (error_already_set &) {
270270
m = module_::import("numpy.core.multiarray");
271271
}
272272
auto c = m.attr("_ARRAY_API");
@@ -634,13 +634,10 @@ class dtype : public object {
634634
module_ m;
635635
try {
636636
m = module_::import("numpy._core._internal");
637-
} catch (error_already_set&) {
637+
} catch (error_already_set &) {
638638
m = module_::import("numpy.core._internal");
639639
}
640-
static PyObject *obj = m.attr("_dtype_from_pep3118")
641-
.cast<object>()
642-
.release()
643-
.ptr();
640+
static PyObject *obj = m.attr("_dtype_from_pep3118").cast<object>().release().ptr();
644641
return reinterpret_borrow<object>(obj);
645642
}
646643

0 commit comments

Comments
 (0)