Skip to content

v0.16.0

Latest
Compare
Choose a tag to compare
@XuehaiPan XuehaiPan released this 28 May 07:15
· 7 commits to main since this release

optree v0.15.0

Added

  • Explicitly set recursion limit for recursion tests by @XuehaiPan in #207.
  • Dump build-time meta-information to C extension by @XuehaiPan in #215.
  • Use pybind11::native_enum to create enum class PyTreeKind if available by @XuehaiPan in #214.
  • Enable pybind11::smart_holder to create class PyTreeSpec and PyTreeIter if available by @XuehaiPan in #217.
  • Implement optional tp_clear for class PyTreeSpec and PyTreeIter by @XuehaiPan in #218.
  • Add function tree_partition by @pfackeldey in #222.
  • Add Python 3.14 and Python 3.14t support by @XuehaiPan in #216.

Changed

  • Enforce naming convention of packages with singular and plural: optree.{accessor,integration} -> optree.{accessors,integrations} by @XuehaiPan in #209.
  • Allow creating dataclass types in the global namespace by @XuehaiPan in #212.
  • Migrate to setuptools>=77 for PEP-639 by @XuehaiPan in #208.
  • Update minimal version of typing-extensions to 4.6.0 for typing_extensions.TypeAliasType by @XuehaiPan in #216.

Fixed

  • Never call PyType_Ready twice and use PyType_Modified instead by @XuehaiPan in #214.
  • Fix optree.typing.PyTree[T] for Python 3.14 due to immutable UnionType by @XuehaiPan in #216.

Removed

New Contributors

Full Changelog: v0.15.0...v0.16.0