Files
zeekayandHanzo Dev a63f961014 pyo3: the pyclass attributes speak the pyo3 the manifest pins
The upstream merge carried three `from_py_object` options in from a lib.rs
written for pyo3 0.29, into a crate that pins 0.24. 0.24 does not know the
option, so the pyclass macro refused all three types and sixty cascade errors
followed — which failed `cargo check --workspace`, the gate every publish run
passes through, so nothing in this repository could release.

On 0.24 a Clone pyclass derives FromPyObject by default, which is what the
option opts into on later versions: dropping it changes nothing the bindings do.
Moving to 0.29 is its own migration (PyObject, extract_bound and downcast all
changed shape) and belongs in its own commit.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-17 04:30:53 -07:00
..
2026-01-16 12:30:55 -08:00
2026-01-16 12:30:55 -08:00
2026-01-16 12:30:55 -08:00
2026-01-16 12:30:55 -08:00
2026-08-04 14:13:33 -07:00
2026-01-16 12:30:55 -08:00
2026-01-16 12:30:55 -08:00
2026-01-16 12:30:55 -08:00
2026-01-16 12:30:55 -08:00
2026-01-16 12:30:55 -08:00

Installation

From the hanzo-ml-pyo3 directory, enable a virtual env where you will want the hanzo package to be installed then run.

maturin develop -r 
python test.py

Generating Stub Files for Type Hinting

For type hinting support, the hanzo-ml-pyo3 package requires *.pyi files. You can automatically generate these files using the stub.py script.

Steps:

  1. Install the package using maturin.
  2. Generate the stub files by running:
    python stub.py
    

Validation:

To ensure that the stub files match the current implementation, execute:

python stub.py --check