Skip to content

docs: align the naturaldelta example with minute rounding - #410

Open
Likio3000 wants to merge 1 commit into
python-humanize:mainfrom
Likio3000:docs/correct-naturaldelta-minute-example-20260923
Open

Likio3000 wants to merge 1 commit into
python-humanize:mainfrom
Likio3000:docs/correct-naturaldelta-minute-example-20260923

Conversation

@Likio3000

Copy link
Copy Markdown

The README still shows naturaldelta(timedelta(seconds=1001)) returning 16 minutes, although #272 changed naturaldelta to round to the nearest unit. Update the expected output to 17 minutes so the example matches the current implementation and documented behavior.

Changes proposed in this pull request:

  • Correct this one README output line; no implementation changes.

Validation: statically checked the minute branch (round(delta.seconds / 60)), the rounding docstring, the existing 1m29s/1m30s/1m59s test cases, and the changes in #272. Independently checked the arithmetic for 1001 seconds. I did not run Humanize, its test suite, linting, or the documentation build.

Prepared with assistance from OpenAI Codex.

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.

1 participant