There is a newer version of the record available.

Published March 26, 2023 | Version v0.2.3
Software Open

ASEM000/PyTreeClass: v0.2.3

Authors/Creators

  • 1. KAIST

Description

What's Changed
  • New viz function tree_repr_with_trace in #47 (useful for debugging)
  • Shield fields map from a user by removing from the class namespace in #44.
    • This might be the case when a user tries to change a field value from within the instance. However, this change will affect all instances of the same class.
  • Raise error for mutable values in field default. previously only raised for a:list=[] but not for a:list=pytc.field(default=[])
  • Change verbose naming of default_factory -> factory ( recognized by dataclass_transform and attrs)
  • Raise error if a field is named self
  • [internal] use lru_cache to improve treeclass perf.

Full Changelog: https://github.com/ASEM000/PyTreeClass/compare/v0.2.2...v0.2.3

Files

ASEM000/PyTreeClass-v0.2.3.zip

Files (346.3 kB)

Name Size Download all
md5:6e391619dab9286425f4d97502ad751c
346.3 kB Preview Download

Additional details

Related works