Skip to content

v0.5.0

Choose a tag to compare

@timrid timrid released this 24 May 12:58
· 100 commits to main since this release

Big changes:

  • renamed classes/methods/files:
    • tstruct.py -> dataclass_struct.py
    • TStruct -> DataclassStruct
    • TBitStruct -> DataclassBitStruct
    • sfield -> csfield
    • TContainerMixin -> DataclassMixin
  • Removed add_offsets from DataclassStruct
  • Revised DataclassMixin:
    • removed inheritance of cs.Container, which removed the inherited methods names like update, keys, etc and makes them usable as dataclass field names
    • copied __str__ from cs.Container with a few modifications, so that the output stays almost the same

Small changes:

  • adapted stubs to construct v2.10.67
  • fixed some errors in construct-stubs and added a few missing methods
  • pyright is now fully supported
  • extended documentation
  • removed unfinished union file