Skip to content

Releases: timrid/construct-typing

v0.5.0

24 May 12:58

Choose a tag to compare

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

v0.4.2

13 Apr 19:37

Choose a tag to compare

values from cs.Const and cs.Default are now set as default value a TContainerMixin

v0.4.1

03 Apr 19:42

Choose a tag to compare

adapted stubs to construct v2.10.66

v0.4.0

30 Mar 18:02

Choose a tag to compare

  • adapted stubs to construct v2.10.64
  • renamed "TContainerBase" to "TContainerMixin"
  • changed "swapped" to "reverse" in TStruct and TBitStruct

v0.3.0

24 Mar 19:35

Choose a tag to compare

  • added covariant for ParsedType and contravariant for BuildTypes (thanks to @ad1217)
  • renamed cst.TStructField to cst.sfield
  • renamed cst.TUnionField to cst.ufield
  • fixed typing error from pylance in the constructor of TEnum and TFlagsEnum

v0.2.0

20 Feb 23:26

Choose a tag to compare

  • updated to construct v2.10.61
  • fixed some typing issues
  • strip trailing new lines in documentation of "TStructField"
  • adding also values that are not part of the dataclass to the "TContainer" while parsing
  • added setting "add_offsets" and getattr to TStruct
  • corrected pinning to specific version

v0.1.1

04 Jan 20:30

Choose a tag to compare

Incremented version to v0.1.1

v0.1.0

03 Jan 13:07
2a562c9

Choose a tag to compare

Initial version