From da0d98e52838dc822793d9ba1f5c56c8b362bbe9 Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Sat, 7 Feb 2026 12:50:08 +0100 Subject: [PATCH] chore(python): Update PyO3 to 0.28.0 Signed-off-by: Dmitry Dygalo --- bindings/python/CHANGELOG.md | 4 ++++ bindings/python/Cargo.toml | 2 +- bindings/python/src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bindings/python/CHANGELOG.md b/bindings/python/CHANGELOG.md index 95608c9f..ae823bc6 100644 --- a/bindings/python/CHANGELOG.md +++ b/bindings/python/CHANGELOG.md @@ -6,6 +6,10 @@ - `apply_width_attributes` and `apply_height_attributes` options to add dimension HTML attributes from CSS properties on supported elements (`table`, `td`, `th`, `img`). [#652](https://github.com/Stranger6667/css-inline/issues/652) +### Changed + +- Update `PyO3` to `0.28.0`. + ### Performance - Skip selectors that reference non-existent classes, IDs, or tags. diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 82a43d35..a0c513a1 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -14,7 +14,7 @@ crate-type = ["cdylib"] built = { version = "0.8.0", features = ["cargo-lock", "chrono"] } [dependencies] -pyo3 = { version = "0.27.1", features = ["extension-module", "abi3-py39"] } +pyo3 = { version = "0.28.0", features = ["extension-module", "abi3-py39"] } pyo3-built = "0.6" rayon = "1" url = "2" diff --git a/bindings/python/src/lib.rs b/bindings/python/src/lib.rs index 5c78d2fc..15ed4116 100644 --- a/bindings/python/src/lib.rs +++ b/bindings/python/src/lib.rs @@ -75,7 +75,7 @@ fn parse_url(url: Option) -> PyResult> { /// StylesheetCache(size=8) /// /// An LRU Cache for external stylesheets. -#[pyclass] +#[pyclass(from_py_object)] #[derive(Clone)] struct StylesheetCache { size: NonZeroUsize,