Construct-typing

Latest version: v0.6.2

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.5.4

- fixed static analysis issues so that the latest versions are supported
- pyright: 1.1.285
- mypy: 0.991
- updated `IfThenElse` so that it represents the real implementation as a class and not a method
- enhanced `EnumBase` and `FlagsEnumBase` to support individual documentation for each enum value via `EnumValue`

0.5.3

- added python 3.11 support
- fixed static analysis issues so that the latest versions are supported
- pyright: 1.1.277
- mypy: 0.982
- Use `os.PathLike` for file names
- fixed `BuildTypes` of `construct.Const`
- upgrade requirement to construct==2.10.68

0.5.2

- fixed setup.py for sdist (.tar.gz file)
- added stub for `evaluate()`
- fixed Switch.default
- fixed `IfThenElse` for pyright

0.5.1

Enhancement for `cs.Checksum`, so that `bytesfunc` can return any object and not only `bytes`.

0.5.0

**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

0.4.2

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

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.