Repository navigation
0.156.2: format_duration reads a non-string step_name as absent, words a whole count exactly - #69
Merged
Merged
Conversation
…words a whole count exactly A step_name of the wrong kind raised TypeError; the calendar profile reads an optional key of the wrong kind as absent, so the duration is worded in the grain. A whole count was rounded through n * 100, which is not exact past 2^53 / 100: 9007199254740990 steps came back as 9007199254740989 days. The npm SDK's formatDuration moves the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lumns Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was previously 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.
Two faults in
calendar.format_duration: astep_namethat is not a string raisedTypeError(the calendar profile reads an optional key of the wrong kind as absent, so it now falls back to the grain), and a whole count was rounded throughn * 100, which is not exact past 2^53 / 100 (9007199254740990steps were worded as9007199254740989 days). Tests for both intests/test_calendar.py; the npm SDK moves the same way.Both measured red on 0.156.1 before the change.
🤖 Generated with Claude Code