Skip to content

Commit

Permalink
Update PyO3 to 0.17.2 (#702) (#734)
Browse files Browse the repository at this point in the history
* Update pyo3

* Clippy + Cargo fmt

* Add clippy warning that was removed

(cherry picked from commit c073a21)

Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] and IvanIsCoding committed Nov 9, 2022
1 parent c90885e commit d24c438
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 23 deletions.
31 changes: 17 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ crate-type = ["cdylib"]
ahash = { version = "0.7.6", default-features = false }
petgraph = "0.6.2"
fixedbitset = "0.4.2"
numpy = "0.16.2"
numpy = "0.17.2"
rand = "0.8"
rand_pcg = "0.3"
rayon = "1.5"
Expand All @@ -35,7 +35,7 @@ serde_json = "1.0"
rustworkx-core = { path = "rustworkx-core", version = "=0.12.0" }

[dependencies.pyo3]
version = "0.16.6"
version = "0.17.2"
features = ["extension-module", "hashbrown", "num-bigint", "num-complex", "indexmap"]

[dependencies.hashbrown]
Expand Down
4 changes: 2 additions & 2 deletions src/digraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// License for the specific language governing permissions and limitations
// under the License.

#![allow(clippy::borrow_deref_ref)]
#![allow(clippy::borrow_as_ptr)]

use std::cmp;
use std::cmp::Ordering;
Expand All @@ -34,8 +34,8 @@ use pyo3::PyTraverseError;
use pyo3::Python;

use ndarray::prelude::*;
use num_complex::Complex64;
use num_traits::Zero;
use numpy::Complex64;
use numpy::PyReadonlyArray2;

use petgraph::algo;
Expand Down
4 changes: 2 additions & 2 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// License for the specific language governing permissions and limitations
// under the License.

#![allow(clippy::borrow_deref_ref)]
#![allow(clippy::borrow_as_ptr)]

use std::cmp;
use std::collections::BTreeMap;
Expand All @@ -31,8 +31,8 @@ use pyo3::PyTraverseError;
use pyo3::Python;

use ndarray::prelude::*;
use num_complex::Complex64;
use num_traits::Zero;
use numpy::Complex64;
use numpy::PyReadonlyArray2;

use super::dot_utils::build_dot;
Expand Down
2 changes: 1 addition & 1 deletion src/graphml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// License for the specific language governing permissions and limitations
// under the License.

#![allow(clippy::borrow_deref_ref)]
#![allow(clippy::borrow_as_ptr)]

use std::convert::From;
use std::io::BufRead;
Expand Down
2 changes: 1 addition & 1 deletion src/iterators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ where

impl<K, V> PyEq<PyAny> for DictMap<K, V>
where
for<'p> K: PyEq<K> + Clone + pyo3::ToBorrowedObject,
for<'p> K: PyEq<K> + Clone + pyo3::ToPyObject,
for<'p> V: PyEq<PyAny>,
{
#[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ use union::*;

use hashbrown::HashMap;
use indexmap::map::Entry::{Occupied, Vacant};
use num_complex::Complex64;
use numpy::Complex64;

use pyo3::create_exception;
use pyo3::exceptions::PyException;
Expand Down

0 comments on commit d24c438

Please sign in to comment.