Repository navigation
Add BoundedVec codec type - #17
Merged
Merged
Conversation
arjanz
force-pushed
the
codex/bounded-vec
branch
from
October 16, 2026 09:43
6762c55 to
6708ef4
Compare
arjanz
force-pushed
the
codex/bounded-vec
branch
from
October 16, 2026 09:45
6708ef4 to
44d50a3
Compare
Added Python 3.14 support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move the reusable
BoundedVeccodec from PyJAMaz intojamcodec.types. It preservesVecwire encoding while enforcing inclusive count bounds, optional divisibility, and canonicalVarInt64length prefixes before constructing or decoding any elements. Encoding and deserialization enforce the same count constraints.Validate constructor constraints and retain
Vec(U8)byte semantics, counting decoded bytes for hex and UTF-8 inputs. Add usage documentation and 17 focused tests covering boundaries, malformed and oversized lengths, stream offsets, byte vectors, and nestedSerializablevalues.Upgrade the unit-test workflow to
actions/setup-python@v7so Python 3.9 can be downloaded when it is absent from the runner cache. Pin the runner to Ubuntu 24.04 because the Python release manifest has no 3.9 builds for Ubuntu 26.04, whichubuntu-latestis scheduled to adopt. Retain the Python 3.9–3.13 test matrix.Validation:
PYTHONPATH.