construct-typing
construct-typing copied to clipboard
`construct` has had a few releases since the last update of this project, it would be nice to look into this further
In my use case, i would like to reuse some dataclasses as the field of another dataclasses, here is my code: ```python @DataclassStruct @dataclasses.dataclass class A(DataclassMixin): a : int =...
Based on the unit test [test_dataclass_const_default](https://github.com/timrid/construct-typing/blob/main/tests/test_typed.py#L24), it does not appear we can set the default fields. I would expect that is possible per [construct.Default documentation](https://construct.readthedocs.io/en/latest/api/misc.html#construct.Default). ``` >>> ConstDefaultTest(default_int=5) Traceback (most...
I'm trying to convert old construct code to be more readable and `DataclassMixin` seems the way to do it. However, I converting nested structures into dataclass instances is a bit...
The README section for `construct_typed` has this big `!!! EXPERIMENTAL VERSION !!!` health warning on it, and I'm curious what that entails. For example, is it saying it might not...
Hi! Great package! I use `AlignedStruct` from construct, is there a way to wrap it by `DataclassStruct`? Thanks!
`Switch.default` is never None. If it is not provided it is `Pass`.
Does your project run tests against compiled classes as well? If you look, I added a new testing function called `common2()`. It checks compiled classes against core ones.
added internal Construct methods, used when inheriting the class