Skip to content

Commit 3ae971d

Browse files
committed
chore(python): Update PyO3 to 0.28.0
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
1 parent a21fd68 commit 3ae971d

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

bindings/python/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- `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)
88

9+
### Changed
10+
11+
- Update `PyO3` to `0.28.0`.
12+
913
### Performance
1014

1115
- Skip selectors that reference non-existent classes, IDs, or tags.

bindings/python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ crate-type = ["cdylib"]
1414
built = { version = "0.8.0", features = ["cargo-lock", "chrono"] }
1515

1616
[dependencies]
17-
pyo3 = { version = "0.27.1", features = ["extension-module", "abi3-py39"] }
17+
pyo3 = { version = "0.28.0", features = ["extension-module", "abi3-py39"] }
1818
pyo3-built = "0.6"
1919
rayon = "1"
2020
url = "2"

bindings/python/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn parse_url(url: Option<String>) -> PyResult<Option<rust_inline::Url>> {
7575
/// StylesheetCache(size=8)
7676
///
7777
/// An LRU Cache for external stylesheets.
78-
#[pyclass]
78+
#[pyclass(from_py_object)]
7979
#[derive(Clone)]
8080
struct StylesheetCache {
8181
size: NonZeroUsize,

0 commit comments

Comments
 (0)