Published April 19, 2023
| Version v0.3.0
Software
Open
ASEM000/PyTreeClass: v0.3.0
Description
Breaking change v0.3
For better typing, the decorator-based approach is changed to subclassing approach.
Old
@functools.partial(pytc.treeclass, leafwise=True)
class Tree:
pass
New
class Tree(pytc.TreeClass, leafwise=True):
pass
is_treeclassis removed useisinstance(..., TreeClass)insteadpytc.fieldsis removed.
Full Changelog: https://github.com/ASEM000/PyTreeClass/compare/v0.2.8...v0.3.0
Files
ASEM000/PyTreeClass-v0.3.0.zip
Files
(339.3 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:78eeeafd47616c5dbfbc5f9de78bfb48
|
339.3 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/ASEM000/PyTreeClass/tree/v0.3.0 (URL)