Commit 26266ee 1 parent 690f06c commit 26266ee Copy full SHA for 26266ee
File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ 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
48
#[ cfg( feature = "gil-refs" ) ]
45
49
fn into_pyarray < ' py > ( self , py : Python < ' py > ) -> & ' py PyArray < Self :: Item , Self :: Dim > {
46
50
Self :: into_pyarray_bound ( self , py) . into_gil_ref ( )
@@ -149,6 +153,10 @@ pub trait ToPyArray {
149
153
type Dim : Dimension ;
150
154
151
155
/// Deprecated form of [`ToPyArray::to_pyarray_bound`]
156
+ #[ deprecated(
157
+ since = "0.21.0" ,
158
+ note = "will be replaced by `ToPyArray::to_pyarray_bound` in the future"
159
+ ) ]
152
160
#[ cfg( feature = "gil-refs" ) ]
153
161
fn to_pyarray < ' py > ( & self , py : Python < ' py > ) -> & ' py PyArray < Self :: Item , Self :: Dim > {
154
162
Self :: to_pyarray_bound ( self , py) . into_gil_ref ( )
You can’t perform that action at this time.
0 commit comments