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

Closed
wants to merge 7 commits into from
Closed
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 untyped_arrays
  • Loading branch information
bschoenmaeckers committed Jun 27, 2024
commit 5118b32afb09189fbc35a59a28db1b04c0436f7e
5 changes: 4 additions & 1 deletion src/untyped_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
//! [ndarray]: https://numpy.org/doc/stable/reference/arrays.ndarray.html
use std::slice;

#[cfg(feature = "gil-refs")]
use pyo3::PyNativeType;
use pyo3::{
ffi, pyobject_native_type_extract, pyobject_native_type_named, types::PyAnyMethods,
AsPyPointer, Bound, IntoPy, PyAny, PyNativeType, PyObject, PyTypeInfo, Python,
AsPyPointer, Bound, IntoPy, PyAny, PyObject, PyTypeInfo, Python,
};

use crate::array::{PyArray, PyArrayMethods};
Expand Down Expand Up @@ -85,6 +87,7 @@ impl IntoPy<PyObject> for PyUntypedArray {

pyobject_native_type_extract!(PyUntypedArray);

#[cfg(feature = "gil-refs")]
impl PyUntypedArray {
/// Returns a raw pointer to the underlying [`PyArrayObject`][npyffi::PyArrayObject].
#[inline]
Expand Down