Skip to content

Commit fda420e

Browse files
committed
chore: Update PyO3 to 0.23
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent 2da2f78 commit fda420e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

bindings/python/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
### Changed
1010

11+
- Update `PyO3` to `0.23.3`.
1112
- Bump MSRV to `1.71.1`.
1213

1314
## [0.14.3] - 2024-11-14

bindings/python/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ crate-type = ["cdylib"]
1414
built = { version = "0.7.1", features = ["cargo-lock", "chrono"] }
1515

1616
[dependencies]
17-
pyo3 = { version = "0.22.0", features = ["extension-module", "abi3-py37"] }
17+
pyo3 = { version = "0.23.3", features = ["extension-module", "abi3-py37"] }
1818
pyo3-built = "0.5"
1919
rayon = "1"
2020
url = "2"

bindings/python/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,10 @@ fn css_inline(py: Python<'_>, module: &Bound<'_, PyModule>) -> PyResult<()> {
377377
module.add_wrapped(wrap_pyfunction!(inline_fragment))?;
378378
module.add_wrapped(wrap_pyfunction!(inline_many))?;
379379
module.add_wrapped(wrap_pyfunction!(inline_many_fragments))?;
380-
let inline_error = py.get_type_bound::<InlineError>();
380+
let inline_error = py.get_type::<InlineError>();
381381
inline_error.setattr("__doc__", INLINE_ERROR_DOCSTRING)?;
382382
module.add("InlineError", inline_error)?;
383+
#[allow(deprecated)]
383384
module.add("__build__", pyo3_built::pyo3_built!(py, build))?;
384385
Ok(())
385386
}

0 commit comments

Comments
 (0)