Skip to content

Commit fb84612

Browse files
committed
chore(python): Revert pyo3 update
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent a251d7c commit fb84612

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Diff for: bindings/python/CHANGELOG.md

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

99
### Changed
1010

11-
- Update `PyO3` to `0.23.3`.
1211
- Bump MSRV to `1.71.1`.
1312

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

Diff for: 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.23.3", features = ["extension-module", "abi3-py37"] }
17+
pyo3 = { version = "0.22.0", features = ["extension-module", "abi3-py37"] }
1818
pyo3-built = "0.5"
1919
rayon = "1"
2020
url = "2"

Diff for: bindings/python/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,9 @@ 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::<InlineError>();
380+
let inline_error = py.get_type_bound::<InlineError>();
381381
inline_error.setattr("__doc__", INLINE_ERROR_DOCSTRING)?;
382382
module.add("InlineError", inline_error)?;
383-
#[allow(deprecated)]
384383
module.add("__build__", pyo3_built::pyo3_built!(py, build))?;
385384
Ok(())
386385
}

0 commit comments

Comments
 (0)