Skip to content

IdentifierWrapper rejects its own documented slices#84

Merged
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/slicer
Jul 20, 2026
Merged

IdentifierWrapper rejects its own documented slices#84
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/slicer

Conversation

@roed-math

Copy link
Copy Markdown

The docstring documents open-ended slices (name[:10], name[0::1]), but empty slice bounds failed the isdigit() validation. Empty bounds now mean what they mean in Python. Behind that, the rejection path itself was broken: its message contained a stray % i conversion, so instead of the intended ValueError it raised TypeError: %i format: a real number is required from the formatting. The message is fixed and the intended ValueError is what's raised.


Split out of #60 (one PR per issue). This branch carries only this issue's fix and its tests; the rest of the known-bug inventory stays xfailed, so the full suite is green here and the strict markers guarantee no cross-issue leakage.

The docstring documents open-ended slices (name[:10], name[0::1]), but empty slice bounds failed the isdigit() validation. Empty bounds now mean what they mean in Python. Behind that, the rejection path itself was broken: its message contained a stray % i conversion, so instead of the intended ValueError it raised TypeError: %i format: a real number is required from the formatting. The message is fixed and the intended ValueError is what's raised.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@roed314
roed314 merged commit 51b78a5 into roed314:master Jul 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants