Skip to content

[FIX] Address inconsistencies and missing tests - #60

Merged
MatrixEditor merged 19 commits into
masterfrom
fix/inconsistencies-and-tests
Jun 27, 2026
Merged

[FIX] Address inconsistencies and missing tests#60
MatrixEditor merged 19 commits into
masterfrom
fix/inconsistencies-and-tests

Conversation

@MatrixEditor

@MatrixEditor MatrixEditor commented Jun 27, 2026

Copy link
Copy Markdown
Owner

This pull request tries to introduce more consistency across caterpillar by adding more tests and fixing important issues, such as:

  • ConstString: fix length error for unicode symbols
  • the round key in a KeyCipher is not rotated when specified with a ContextLambda
  • dynamic byteorder support for VarInt
  • Pointer: ignore nullptr
  • Sequence: fix inheritance support
  • Padding: fix reading bytes when a field specifies the length
  • ConditionalContext: Add support for Annotated[...] (new syntax) annotations
  • PyStructFormattedField: native formats always use '@' order from now on
  • Chain: fix rand incorrectly appending the target struct instead of prepending
  • Struct: fix Invisible behavior on unpack()
  • and many more small typing fixes

+ Field.options setter now always creates a dict with structs
+ Add pystruct cache for stdlib struct packed types
+ Padding: fill pattern is now enforced
+ CString: Add chunked parsing to greedy CStrings
+ Memory: add pre-computed length type
+ ConstString: fix length error for unicode symbols
+ Prefixed: make parsing more strict
+ Add strict alignment checking
+ Uuid: FIx endian in Uuid
+ Timestamp: set UTC to default timezone
+ the round key in a KeyCipher is not rotated when specified with a ContextLambda
- Padding: fix reading bytes when a field specifies the length
+ PyStructFormattedField: native formats always use '@' order from now on
+ @template: annotations are now explicitly set on the new class
+ fix fields.net, fields.pointer generic types
+ Add Annotated[] support to If statements
@MatrixEditor MatrixEditor self-assigned this Jun 27, 2026
@MatrixEditor
MatrixEditor merged commit 7205eb2 into master Jun 27, 2026
12 checks passed
@MatrixEditor
MatrixEditor deleted the fix/inconsistencies-and-tests branch June 27, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant