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