Package: python-pycddl / 0.6.4+ds-3

Metadata

Package Version Patches format
python-pycddl 0.6.4+ds-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
adapt library to pyo3 0.23 api.patch | (download)

src/deserialize.rs | 26 13 + 13 - 0 !
src/lib.rs | 6 3 + 3 - 0 !
2 files changed, 16 insertions(+), 16 deletions(-)

 adapt library to pyo3 0.23 api

Replace deprecated into_py with into_pyobject and unbind.
This is slop, and it doesn't seem very elegant, but it passes
the tests so I guess it's better than nothing.

refactor: migrate from PyO3 0.22 to 0.25 API
fix: replace deprecated into_py with into_pyobject and unbind
fix: convert Py<T> to Py<PyAny> in deserialize functions
fix: clone borrowed PyBool before unbinding to prevent move error
fix: convert borrowed PyBool to owned Bound before unbinding
fix: import BoundObject trait to resolve into_bound method
refactor: use idiomatic PyO3 0.25 conversion pattern with into_any().unbind()

Co-authored-by: aider (anthropic/claude-sonnet-4-5-20250929) <aider@aider.chat>

pyo3 0.26.patch | (download)

Cargo.toml | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 patch for pyo3 0.26/0.27

Bug-Debian: https://bugs.debian.org/1114321