py: upgrade to PyO3 0.22

This commit is contained in:
Dirkjan Ochtman 2024-07-02 10:26:17 +02:00
parent f7dd587878
commit 36a84c16e0
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -18,5 +18,5 @@ crate-type = ["cdylib"]
[dependencies]
bincode = "1.3.2"
instant-segment = { version = "0.11", path = "../instant-segment", features = ["with-serde"] }
pyo3 = { version = "0.21", features = ["extension-module"] }
pyo3 = { version = "0.22", features = ["extension-module"] }
smartstring = "1"

View File

@ -6,7 +6,7 @@ use std::io::{BufReader, BufWriter};
use pyo3::exceptions::PyValueError;
use pyo3::pybacked::PyBackedStr;
use pyo3::types::{PyAnyMethods, PyIterator, PyModule};
use pyo3::types::{PyAnyMethods, PyIterator, PyModule, PyModuleMethods};
use pyo3::{pyclass, pymethods, pymodule, Bound};
use pyo3::{PyErr, PyRef, PyRefMut, PyResult, Python};
use smartstring::alias::String as SmartString;