py: upgrade PyO3 to 0.22

This commit is contained in:
Dirkjan Ochtman 2024-07-02 10:42:42 +02:00
parent 0c4b195578
commit 94cf4b1ec8
2 changed files with 2 additions and 2 deletions

View File

@ -17,6 +17,6 @@ crate-type = ["cdylib"]
[dependencies] [dependencies]
bincode = "1.3.1" bincode = "1.3.1"
instant-distance = { version = "0.6", path = "../instant-distance", features = ["with-serde"] } instant-distance = { version = "0.6", path = "../instant-distance", features = ["with-serde"] }
pyo3 = { version = "0.21", features = ["extension-module"] } pyo3 = { version = "0.22", features = ["extension-module"] }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
serde-big-array = "0.5.0" serde-big-array = "0.5.0"

View File

@ -10,7 +10,7 @@ use std::iter::FromIterator;
use instant_distance::Point; use instant_distance::Point;
use pyo3::conversion::IntoPy; use pyo3::conversion::IntoPy;
use pyo3::exceptions::{PyTypeError, PyValueError}; use pyo3::exceptions::{PyTypeError, PyValueError};
use pyo3::types::{PyAnyMethods, PyList, PyListMethods, PyModule, PyString}; use pyo3::types::{PyAnyMethods, PyList, PyListMethods, PyModule, PyModuleMethods, PyString};
use pyo3::{pyclass, pymethods, pymodule, Bound}; use pyo3::{pyclass, pymethods, pymodule, Bound};
use pyo3::{Py, PyAny, PyErr, PyObject, PyRef, PyRefMut, PyResult, Python}; use pyo3::{Py, PyAny, PyErr, PyObject, PyRef, PyRefMut, PyResult, Python};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};