Skip to content

Commit 882b88f

Browse files
committed
Update PyO3 to 0.18
1 parent 4b517c6 commit 882b88f

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
1111
[dependencies]
1212
num-bigint = ">=0.4.3,<0.5"
1313
owned_chars = ">=0.3.2,<0.4"
14-
pyo3 = { version = ">=0.17,<0.18", features = ["num-bigint"] }
14+
pyo3 = { version = ">=0.18,<0.19", features = ["num-bigint"] }
1515
thiserror = ">=1.0.37,<2"
1616
utf8-chars = ">=2.0.2,<3"
1717
compact_str = ">=0.7.1,<0.8"
@@ -24,7 +24,7 @@ utf8-width = ">=0.1.6,<0.2"
2424
rstest = ">=0.18.1,<0.19"
2525

2626
[build-dependencies]
27-
pyo3-build-config = { version = "= 0.17.3", features = ["resolve-config"] }
27+
pyo3-build-config = { version = "= 0.18.3", features = ["resolve-config"] }
2828

2929
# workaround for linkage errors when running cargo test:
3030
# https://pyo3.rs/v0.18.1/faq#i-cant-run-cargo-test-or-i-cant-build-in-a-cargo-workspace-im-having-linker-issues-like-symbol-not-found-or-undefined-reference-to-_pyexc_systemerror

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ enum Token {
157157
#[pymethods]
158158
impl RustTokenizer {
159159
#[new]
160-
#[args("*", buffering = -1, correct_cursor = "true")]
160+
#[pyo3(signature = (stream, *, buffering = -1, correct_cursor = true))]
161161
fn new(stream: PyObject, buffering: i64, correct_cursor: bool) -> PyResult<Self> {
162162
let buffering_mode = if buffering < 0 {
163163
BufferingMode::DontCare

0 commit comments

Comments
 (0)