Skip to content

Upgrade PyO3 to 0.27#697

Open
diliop wants to merge 3 commits intohuggingface:mainfrom
diliop:main
Open

Upgrade PyO3 to 0.27#697
diliop wants to merge 3 commits intohuggingface:mainfrom
diliop:main

Conversation

@diliop
Copy link

@diliop diliop commented Jan 17, 2026

As per the title, upgrade to pyo3=0.27 plus rustfmt changes

@diliop diliop changed the title Upgrade PyO3 to 0.26 Upgrade PyO3 to 0.27 Jan 17, 2026
impl<'a, 'py> FromPyObject<'a, 'py> for Framework {
type Error = PyErr;

fn extract(ob: Borrowed<'a, 'py, PyAny>) -> PyResult<Self> {

Choose a reason for hiding this comment

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

This and the other extract_bound migration below are the only nontrivial parts of this PR. They look correct but I have one suggestion: it might be better to more closely follow the PyO3 docs and make this function return Result<Self, Self::Error>.

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.

2 participants