Skip to content

Commit

Permalink
Bump PyO3 to the just released version 0.19.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold committed May 31, 2023
1 parent 0256671 commit 7e6babe
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ num-complex = ">= 0.2, < 0.5"
num-integer = "0.1"
num-traits = "0.2"
ndarray = ">= 0.13, < 0.16"
pyo3 = { version = "0.18", default-features = false, features = ["macros"] }
pyo3 = { version = "0.19", default-features = false, features = ["macros"] }
rustc-hash = "1.1"

[dev-dependencies]
pyo3 = { version = "0.18", default-features = false, features = ["auto-initialize"] }
pyo3 = { version = "0.19", default-features = false, features = ["auto-initialize"] }
nalgebra = { version = "0.32", default-features = false, features = ["std"] }

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion examples/linalg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "rust_linalg"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.18", features = ["extension-module"] }
pyo3 = { version = "0.19", features = ["extension-module"] }
numpy = { path = "../.." }
ndarray-linalg = { version = "0.14.1", features = ["openblas-system"] }

Expand Down
2 changes: 1 addition & 1 deletion examples/parallel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "rust_parallel"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.18", features = ["extension-module", "multiple-pymethods"] }
pyo3 = { version = "0.19", features = ["extension-module", "multiple-pymethods"] }
numpy = { path = "../.." }
ndarray = { version = "0.15", features = ["rayon", "blas"] }
blas-src = { version = "0.8", features = ["openblas"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "rust_ext"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.18", features = ["extension-module", "abi3-py37"] }
pyo3 = { version = "0.19", features = ["extension-module", "abi3-py37"] }
numpy = { path = "../.." }

[workspace]
2 changes: 1 addition & 1 deletion src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ impl<D: Dimension> PyArray<PyObject, D> {
///
/// let pyarray = PyArray::from_owned_object_array(py, array);
///
/// assert!(pyarray.readonly().as_array().get(0).unwrap().as_ref(py).is_instance_of::<CustomElement>().unwrap());
/// assert!(pyarray.readonly().as_array().get(0).unwrap().as_ref(py).is_instance_of::<CustomElement>());
/// });
/// ```
pub fn from_owned_object_array<'py, T>(py: Python<'py>, mut arr: Array<Py<T>, D>) -> &'py Self {
Expand Down
4 changes: 2 additions & 2 deletions tests/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ fn is_instance() {
Python::with_gil(|py| {
let arr = PyArray2::<f64>::zeros(py, [3, 5], false);

assert!(arr.is_instance_of::<PyArray2<f64>>().unwrap());
assert!(!arr.is_instance_of::<PyList>().unwrap());
assert!(arr.is_instance_of::<PyArray2<f64>>());
assert!(!arr.is_instance_of::<PyList>());
});
}

Expand Down

0 comments on commit 7e6babe

Please sign in to comment.