Skip to content

Commit

Permalink
Update PyO3 to 0.22.3
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Oct 10, 2024
1 parent d8ca9cb commit b90bc4b
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 102 deletions.
179 changes: 80 additions & 99 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ crate-type = ["cdylib"]
winpty-rs = "0.3.15"

[dependencies.pyo3]
version = "0.21.2"
version = "0.22.3"
features = ["extension-module"]

[package.metadata.docs.rs]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ impl PyPTY {
}

#[pymodule]
fn winpty(py: Python, m: &PyModule) -> PyResult<()> {
fn winpty(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add("__version__", VERSION)?;
m.add("WinptyError", py.get_type::<WinptyError>())?;
m.add("WinptyError", py.get_type_bound::<WinptyError>())?;
m.add_class::<PyPTY>()?;
Ok(())
}

0 comments on commit b90bc4b

Please sign in to comment.