Skip to content

[Python] Update PyO3 from 0.27.2 to 0.28.2#4348

Merged
dbrattli merged 1 commit intomainfrom
dbrattli/python-pyo3-update
Feb 18, 2026
Merged

[Python] Update PyO3 from 0.27.2 to 0.28.2#4348
dbrattli merged 1 commit intomainfrom
dbrattli/python-pyo3-update

Conversation

@dbrattli
Copy link
Collaborator

@dbrattli dbrattli commented Feb 18, 2026

Summary

  • Update PyO3 dependency from 0.27.2 to 0.28.2
  • Add from_py_object to all #[pyclass] types that derive Clone (new PyO3 0.28 requirement)
  • Replace deprecated Py::from_borrowed_ptr with Bound::from_borrowed_ptr + cast_into_unchecked

- Add `from_py_object` to all `#[pyclass]` types that derive `Clone`
- Replace deprecated `Py::from_borrowed_ptr` with `Bound::from_borrowed_ptr` + `cast_into_unchecked`
- Remove dropped dependencies (indoc, memoffset, unindent)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

Python Type Checking Results (Pyright)

Metric Value
Total errors 18
Files with errors 4
Excluded files 4
New errors ✅ No
Excluded files with errors (4 files)

These files have known type errors and are excluded from CI. Remove from pyrightconfig.ci.json as errors are fixed.

File Errors Status
temp/tests/Python/test_applicative.py 12 Excluded
temp/tests/Python/test_hash_set.py 3 Excluded
temp/tests/Python/test_nested_and_recursive_pattern.py 2 Excluded
temp/tests/Python/fable_modules/thoth_json_python/encode.py 1 Excluded

@dbrattli dbrattli merged commit 5de2859 into main Feb 18, 2026
24 checks passed
@dbrattli dbrattli deleted the dbrattli/python-pyo3-update branch February 18, 2026 19:48
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

Comments