Repository navigation
optree v0.16.0
optree v0.16.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_enumto create enum classPyTreeKindif available by @XuehaiPan in #214. - Enable
pybind11::smart_holderto create classPyTreeSpecandPyTreeIterif available by @XuehaiPan in #217. - Implement optional
tp_clearfor classPyTreeSpecandPyTreeIterby @XuehaiPan in #218. - Add function
tree_partitionby @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>=77for PEP-639 by @XuehaiPan in #208. - Update minimal version of
typing-extensionsto 4.6.0 fortyping_extensions.TypeAliasTypeby @XuehaiPan in #216.
Fixed
- Never call
PyType_Readytwice and usePyType_Modifiedinstead by @XuehaiPan in #214. - Fix
optree.typing.PyTree[T]for Python 3.14 due to immutableUnionTypeby @XuehaiPan in #216.
Removed
- Drop Python 3.8 support by @XuehaiPan in #206.
- Retire benchmark script by @XuehaiPan in #211.
New Contributors
- @pfackeldey made their first contribution in #222
Full Changelog: v0.15.0...v0.16.0