Skip to content

hugr-py: v0.6.0

Compare
Choose a tag to compare
@hugrbot hugrbot released this 12 Aug 16:34
937883d

0.6.0 (2024-08-12)

⚠ BREAKING CHANGES

  • hugr-py: Moved hugr.get_serialization_version to hugr.serialization.serial_hugr.serialization_version
  • hugr-cli: Cli validate command no longer has a mermaid option, use mermaid sub-command instead.
  • TypeDefBound uses struct-variants for serialization. SignatureFunc now has variants for missing binary functions, and serializes in to a new format that indicates expected binaries.

Features

  • Package pydantic model for modules + extensions (#1387) (68cfac5), closes #1358
  • Define Const inline by default, and add a parameter to change the parent (#1404) (3609736)
  • hugr-cli: move mermaid to own sub-command (#1390) (77795b9)
  • hugr-py: add type_bound method to Type (#1410) (bd5ba47), closes #1365
  • hugr-py: Allow defining functions, consts, and aliases inside DFGs (#1394) (d554072)
  • hugr-py: Reexport commonly used classes from the package root (#1393) (69925d0)
  • py: Hugr.to_json and .load_json helpers (#1403) (e7f9f4c)
  • py: Allow pre-declaring a Function's output types (#1417) (fa0f5a4)
  • py: implement iter on ToNode (#1399) (e88910b)
  • py: Parametric int type helper, and arbitrary width int constants (#1406) (abd70c9)
  • Serialised extensions (#1371) (31be204)

Bug Fixes

  • py: Hugr.__iter__ returning NodeData | None instead of Nodes (#1401) (c134584)
  • py: Set output cont for Conditionals (#1415) (67bb8a0)

Documentation