Skip to content

Commit 3409d14

Browse files
committed
refactor: bump pyo3 to v0.22
1 parent b9965b5 commit 3409d14

File tree

3 files changed

+15
-79
lines changed

3 files changed

+15
-79
lines changed

Cargo.lock

Lines changed: 13 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "djc_core_html_parser"
99
crate-type = ["cdylib"]
1010

1111
[dependencies]
12-
pyo3 = { version = "0.21.0", features = ["extension-module"] }
12+
pyo3 = { version = "0.22.0", features = ["extension-module"] }
1313
quick-xml = "0.37.2"
1414

1515
# https://ohadravid.github.io/posts/2023-03-rusty-python

src/html_parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const VOID_ELEMENTS: [&str; 14] = [
3838
/// Raises:
3939
/// ValueError: If the HTML is malformed or cannot be parsed.
4040
#[pyfunction]
41+
#[pyo3(signature = (html, root_attributes, all_attributes, check_end_names=None, watch_on_attribute=None))]
4142
#[pyo3(
4243
text_signature = "(html, root_attributes, all_attributes, *, check_end_names=False, watch_on_attribute=None)"
4344
)]

0 commit comments

Comments
 (0)