Skip to content

Commit 896e8a0

Browse files
authored
deps: update to pyo3 v0.23 (#54)
1 parent 0a71056 commit 896e8a0

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

Cargo.lock

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ crate-type = ["cdylib"]
1919
clap = { workspace = true }
2020
cql2 = { path = ".." }
2121
cql2-cli = { path = "../cli" }
22-
pyo3 = { version = "0.22.0", features = ["extension-module"] }
23-
pythonize = "0.22.0"
22+
pyo3 = { version = "0.23.3", features = ["extension-module"] }
23+
pythonize = "0.23.0"

python/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl From<pythonize::PythonizeError> for Error {
131131
fn main(py: Python<'_>) {
132132
use clap::Parser;
133133

134-
let signal = py.import_bound("signal").unwrap();
134+
let signal = py.import("signal").unwrap();
135135
signal
136136
.getattr("signal")
137137
.unwrap()
@@ -153,7 +153,7 @@ fn cql2(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
153153
m.add_function(wrap_pyfunction!(parse_file, m)?)?;
154154
m.add_function(wrap_pyfunction!(parse_text, m)?)?;
155155
m.add_function(wrap_pyfunction!(parse_json, m)?)?;
156-
m.add("ParseError", py.get_type_bound::<ParseError>())?;
157-
m.add("ValidationError", py.get_type_bound::<ValidationError>())?;
156+
m.add("ParseError", py.get_type::<ParseError>())?;
157+
m.add("ValidationError", py.get_type::<ValidationError>())?;
158158
Ok(())
159159
}

uv.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)