waszil

Results 9 comments of waszil

Hi, maybe something like this can be useful: https://gist.github.com/waszil/171d64e5b94cdd51c404d41332f476c0

Hi, what is the status of this? Is it planned to be implemented? Thanks!

Hi, thanks for the good news, it would be appreciated!

I have created a PR for fixing this: https://github.com/astropy/sphinx-automodapi/pull/116

You're right, using `Aligned` for each field works just fine. Thanks!

Wouldn't something like this work? (of course I totally did not think about typing issues here :)) ```python class EnhancedDataclassMixin(DataclassMixin): @classmethod def _get_format(cls): return DataclassStruct(cls) @classmethod def build(cls, obj): return...

Embedding would work as well, I have implemented a small mod for example for this on a branch: https://github.com/waszil/construct-typing/commit/479b51344bfd95149596a75ee574ac2e63c032df

Hi, I also used `construct`, and I don't like their weird syntax using "/" in the declarations, that's why I found your project. With the `BitFields`, I have the same...

I don't see, why the input byte array size would matter, as the `stream.read()` will only read the appropriate number of bytes anyways. But I ran the benchmark with 1024...