Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pyo3 to 0.22.0 #431

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update convert.rs
  • Loading branch information
bschoenmaeckers committed Jun 27, 2024
commit 9fd4f8e449a2af9f50b0aa3f263d6acca324d09c
10 changes: 2 additions & 8 deletions src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ pub trait IntoPyArray: Sized {
type Dim: Dimension;

/// Deprecated form of [`IntoPyArray::into_pyarray_bound`]
#[deprecated(
since = "0.21.0",
note = "will be replaced by `IntoPyArray::into_pyarray_bound` in the future"
)]
#[cfg(feature = "gil-refs")]
fn into_pyarray<'py>(self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
Self::into_pyarray_bound(self, py).into_gil_ref()
}
Expand Down Expand Up @@ -152,10 +149,7 @@ pub trait ToPyArray {
type Dim: Dimension;

/// Deprecated form of [`ToPyArray::to_pyarray_bound`]
#[deprecated(
since = "0.21.0",
note = "will be replaced by `ToPyArray::to_pyarray_bound` in the future"
)]
#[cfg(feature = "gil-refs")]
fn to_pyarray<'py>(&self, py: Python<'py>) -> &'py PyArray<Self::Item, Self::Dim> {
Self::to_pyarray_bound(self, py).into_gil_ref()
}
Expand Down