Skip to content

v0.6.0

Compare
Choose a tag to compare
@timrid timrid released this 24 Jul 09:15
· 5 commits to main since this release
  • Reworked construct-stubs so that it supports pyright>=v1.1.310. To support pyright and mypy in the past, __new__ and __init__ had to be defined. However, this is no longer supported by pyright. Now in most cases only __init__ is defined. Only for some special cases __new__ is used (e.g. for FormatField, Const, Hex, HexDump, IfThenElse, Switch)
  • Added stubs for cs.Compiled.
  • Added some more missing definitions (__author__, __version__, possiblestringencodings, hexdump, hexundump, PY)
  • Use PEP688 buffer protocol for the parse method (fixes #24). This requires a dependency to typing_extensions>=4.6.0.
  • build_stream and build_file do not return anything (fixes #25).