Repository navigation
api: Fit the vector API in the size budget - #224
Draft
BenWestgate wants to merge 1 commit into
Draft
BenWestgate wants to merge 1 commit into
BenWestgate wants to merge 1 commit into
Conversation
Inline the one-caller ASCII lowercase helper and drop its unused imports, return the selected checksum directly, drop docstrings that restate the helper names, and remove the MismatchedProfile alias in favour of MismatchedHrp. Installed logical lines: 5207 -> 5199. Claude-Session: https://claude.ai/code/session_01E75K4nCzge7jFwjwDgeBrR
This branch has not been deployed
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.
Before: #53 fails
test_production_size_budgets_are_enforcedon every CI job, with 5,207 installed logical lines against a limit below 5,200.After: the package is at 5,199 lines. It keeps #53's public names without the leading
_and adds no compatibility notes, per the concept ACK/NACK on #53.How:
_ascii_lower, which had one caller, intochars_to_u5and drop its two unused imports (−3).checksum_for_body_lengthreturns the checksum selected bychecksum_for_encoded_length(−1). The behaviour is the same, including the 94/95 gap check.u5_to_chars,chars_to_u5andChecksum, which repeat the name (−3). The ASCII-only note moves todocs/developer/api.md.MismatchedProfilealias and its "compatibility name" comment. Callers and tests useMismatchedHrp(−1).Validation: full pytest 960 passed, normally and under
-O; ruff check, ruff format and mypy are clean.Stacked on #53. It can be squashed into #53's refresh.
Generated by Claude Code