Skip to content

Update pyo3 to 0.29 - #152

Open
gordonmessmer wants to merge 1 commit into
openai:mainfrom
gordonmessmer:fix/pyo3-0.29
Open

Update pyo3 to 0.29#152
gordonmessmer wants to merge 1 commit into
openai:mainfrom
gordonmessmer:fix/pyo3-0.29

Conversation

@gordonmessmer

Copy link
Copy Markdown

pyo3 0.26 removed PyObject from the prelude and, together with the IntoPyObject conversion rework, made Ok(py_obj.into()) on a PyResult<PyObject> return type ambiguous (multiple applicable wrap impls). Return the Bound<'py, PyAny> produced by call_method1 directly instead, which is unambiguous and works across recent pyo3 releases.

pyo3 0.26 removed `PyObject` from the prelude and, together with the
`IntoPyObject` conversion rework, made `Ok(py_obj.into())` on a
`PyResult<PyObject>` return type ambiguous (multiple applicable `wrap`
impls). Return the `Bound<'py, PyAny>` produced by `call_method1`
directly instead, which is unambiguous and works across recent pyo3
releases.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant