Skip to content

Commit 7dd0808

Browse files
m96-chanclaude
andcommitted
fix: Upgrade PyO3 to 0.23 for Python 3.14 support
- Update pyo3 dependency from 0.22 to 0.23 - Add `unsendable` attribute to PyEtlReader to fix Sync trait requirement - PyO3 0.23+ requires Sync for #[pyclass] by default for free-threaded Python 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b033196 commit 7dd0808

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/pyetwkit-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ crate-type = ["cdylib", "rlib"]
1818
ferrisetw = "1.2"
1919

2020
# Python bindings
21-
pyo3 = { version = "0.22", features = ["extension-module"] }
22-
# Note: pyo3-asyncio not yet compatible with pyo3 0.22
21+
pyo3 = { version = "0.23", features = ["extension-module"] }
22+
# Note: pyo3-asyncio not yet compatible with pyo3 0.23
2323
# Async support will be added via Python-side asyncio wrapper
2424

2525
# Async runtime

crates/pyetwkit-core/src/etl_reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Iterator for EtlReader {
114114
}
115115

116116
/// Python wrapper for EtlReader
117-
#[pyclass(name = "EtlReader")]
117+
#[pyclass(name = "EtlReader", unsendable)]
118118
pub struct PyEtlReader {
119119
inner: Option<EtlReader>,
120120
started: bool,

0 commit comments

Comments
 (0)