Skip to content

Commit 58eda97

Browse files
authored
fix: chore cargo lock and fix two warning for python bindings (#1121)
1 parent b07fbb3 commit 58eda97

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

bindings/python/Cargo.lock

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/python/src/transform.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn apply(py: Python, array: PyObject, transform: Transform) -> PyResult<PyObject
7575
}
7676

7777
pub fn register_module(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
78-
let this = PyModule::new_bound(py, "transform")?;
78+
let this = PyModule::new(py, "transform")?;
7979

8080
this.add_function(wrap_pyfunction!(identity, &this)?)?;
8181
this.add_function(wrap_pyfunction!(void, &this)?)?;
@@ -87,7 +87,7 @@ pub fn register_module(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()>
8787
this.add_function(wrap_pyfunction!(truncate, &this)?)?;
8888

8989
m.add_submodule(&this)?;
90-
py.import_bound("sys")?
90+
py.import("sys")?
9191
.getattr("modules")?
9292
.set_item("pyiceberg_core.transform", this)
9393
}

0 commit comments

Comments
 (0)