Skip to content

Commit 8fdeb61

Browse files
dependabot[bot]Stranger6667
authored andcommitted
build(deps): update pyo3 requirement in /bindings/python
Updates the requirements on [pyo3](https://github.com/pyo3/pyo3) to permit the latest version. - [Release notes](https://github.com/pyo3/pyo3/releases) - [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md) - [Commits](PyO3/pyo3@v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: pyo3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent ea6b923 commit 8fdeb61

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

bindings/python/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `PyO3` to `0.22.0`.
8+
59
## [0.14.1] - 2024-04-27
610

711
### Fixed

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.21.0", 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"

bindings/python/src/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct StylesheetCache {
8383
#[pymethods]
8484
impl StylesheetCache {
8585
#[new]
86-
#[pyo3(text_signature = "(size=8)")]
86+
#[pyo3(signature = (size))]
8787
fn new(size: Option<&Bound<'_, PyAny>>) -> PyResult<Self> {
8888
let size = if let Some(size) = size {
8989
const ERROR_MESSAGE: &str = "Cache size must be an integer greater than zero";
@@ -135,7 +135,7 @@ macro_rules! inliner {
135135
impl CSSInliner {
136136
#[new]
137137
#[pyo3(
138-
text_signature = "(inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
138+
signature = (inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
139139
)]
140140
#[allow(clippy::too_many_arguments)]
141141
fn new(
@@ -206,7 +206,7 @@ impl CSSInliner {
206206
/// Inline CSS in the given HTML document
207207
#[pyfunction]
208208
#[pyo3(
209-
text_signature = "(html, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
209+
signature = (html, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
210210
)]
211211
#[allow(clippy::too_many_arguments)]
212212
fn inline(
@@ -238,7 +238,7 @@ fn inline(
238238
/// Inline CSS in the given HTML fragment
239239
#[pyfunction]
240240
#[pyo3(
241-
text_signature = "(html, css, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
241+
signature = (html, css, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
242242
)]
243243
#[allow(clippy::too_many_arguments)]
244244
fn inline_fragment(
@@ -273,7 +273,7 @@ fn inline_fragment(
273273
/// Inline CSS in multiple HTML documents
274274
#[pyfunction]
275275
#[pyo3(
276-
text_signature = "(htmls, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
276+
signature = (htmls, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
277277
)]
278278
#[allow(clippy::too_many_arguments)]
279279
fn inline_many(
@@ -318,7 +318,7 @@ fn inline_many_impl(
318318
/// Inline CSS in multiple HTML fragments
319319
#[pyfunction]
320320
#[pyo3(
321-
text_signature = "(htmls, css, inline_style_tags=True, keep_style_tags=False, keep_link_tags=False, base_url=None, load_remote_stylesheets=True, cache=None, extra_css=None, preallocate_node_capacity=32)"
321+
signature = (htmls, css, inline_style_tags=true, keep_style_tags=false, keep_link_tags=false, base_url=None, load_remote_stylesheets=true, cache=None, extra_css=None, preallocate_node_capacity=32)
322322
)]
323323
#[allow(clippy::too_many_arguments)]
324324
fn inline_many_fragments(

0 commit comments

Comments
 (0)