There is a newer version of the record available.

Published April 19, 2023 | Version v0.3.0
Software Open

ASEM000/PyTreeClass: v0.3.0

Authors/Creators

  • 1. KAIST

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_treeclass is removed use isinstance(..., TreeClass) instead
  • pytc.fields is 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