@@ -5,15 +5,15 @@ use std::ptr;
55#[ cfg( feature = "half" ) ]
66use half:: { bf16, f16} ;
77use num_traits:: { Bounded , Zero } ;
8+ #[ cfg( feature = "half" ) ]
9+ use pyo3:: sync:: GILOnceCell ;
810use pyo3:: {
911 exceptions:: { PyIndexError , PyValueError } ,
1012 ffi:: { self , PyTuple_Size } ,
1113 pyobject_native_type_extract, pyobject_native_type_named,
1214 types:: { PyAnyMethods , PyDict , PyDictMethods , PyTuple , PyType } ,
1315 Borrowed , Bound , Py , PyAny , PyObject , PyResult , PyTypeInfo , Python , ToPyObject ,
1416} ;
15- #[ cfg( feature = "half" ) ]
16- use pyo3:: { sync:: GILOnceCell } ;
1717#[ cfg( feature = "gil-refs" ) ]
1818use pyo3:: { AsPyPointer , PyNativeType } ;
1919
@@ -790,14 +790,14 @@ macro_rules! clone_methods_impl {
790790 #[ inline]
791791 fn array_from_view<D >(
792792 _py: :: pyo3:: Python <' _>,
793- view: :: ndarray:: ArrayView <' _, $Self, D >
793+ view: :: ndarray:: ArrayView <' _, $Self, D >,
794794 ) -> :: ndarray:: Array <$Self, D >
795795 where
796- D : :: ndarray:: Dimension
796+ D : :: ndarray:: Dimension ,
797797 {
798798 :: ndarray:: ArrayView :: to_owned( & view)
799799 }
800- }
800+ } ;
801801}
802802pub ( crate ) use clone_methods_impl;
803803
0 commit comments