Skip to content

Conversation

mbrobbel
Copy link
Member

@mbrobbel mbrobbel commented Sep 5, 2025

Which issue does this PR close?

Rationale for this change

Bumping to the latest pyo3.

What changes are included in this PR?

Handle breaking changes.

Are these changes tested?

CI.

Are there any user-facing changes?

Yes.

@mbrobbel mbrobbel added api-change Changes to the arrow API next-major-release the PR has API changes and it waiting on the next major version labels Sep 5, 2025
@@ -41,7 +41,7 @@ fn to_py_err(err: ArrowError) -> PyErr {

/// Returns `array + array` of an int64 array.
#[pyfunction]
fn double(array: &Bound<PyAny>, py: Python) -> PyResult<PyObject> {
fn double(array: &Bound<PyAny>, py: Python) -> PyResult<Py<PyAny>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may make sense to change the return type of the to_pyarrow functions to Bound<PyAny> instead of Py<PyAny>? Then you wouldn't need to carry around a py: Python token in any of these functions.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 5218810 what you had in mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API next-major-release the PR has API changes and it waiting on the next major version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants