File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,7 @@ pub trait IntoPyArray: Sized {
41
41
type Dim : Dimension ;
42
42
43
43
/// Deprecated form of [`IntoPyArray::into_pyarray_bound`]
44
- #[ deprecated(
45
- since = "0.21.0" ,
46
- note = "will be replaced by `IntoPyArray::into_pyarray_bound` in the future"
47
- ) ]
44
+ #[ cfg( feature = "gil-refs" ) ]
48
45
fn into_pyarray < ' py > ( self , py : Python < ' py > ) -> & ' py PyArray < Self :: Item , Self :: Dim > {
49
46
Self :: into_pyarray_bound ( self , py) . into_gil_ref ( )
50
47
}
@@ -152,10 +149,7 @@ pub trait ToPyArray {
152
149
type Dim : Dimension ;
153
150
154
151
/// Deprecated form of [`ToPyArray::to_pyarray_bound`]
155
- #[ deprecated(
156
- since = "0.21.0" ,
157
- note = "will be replaced by `ToPyArray::to_pyarray_bound` in the future"
158
- ) ]
152
+ #[ cfg( feature = "gil-refs" ) ]
159
153
fn to_pyarray < ' py > ( & self , py : Python < ' py > ) -> & ' py PyArray < Self :: Item , Self :: Dim > {
160
154
Self :: to_pyarray_bound ( self , py) . into_gil_ref ( )
161
155
}
You can’t perform that action at this time.
0 commit comments