René's URL Explorer Experiment


Title: Improve `precisedelta` to better support rounding and float values. by nuztalgia · Pull Request #39 · python-humanize/humanize · GitHub

Open Graph Title: Improve `precisedelta` to better support rounding and float values. by nuztalgia · Pull Request #39 · python-humanize/humanize

X Title: Improve `precisedelta` to better support rounding and float values. by nuztalgia · Pull Request #39 · python-humanize/humanize

Description: Python humanize functions. Contribute to python-humanize/humanize development by creating an account on GitHub.

Open Graph Description: Fixes #14. Fixes #20. Changes proposed in this pull request Implement better support for rounding and float values in precisedelta. Add the test cases listed below, to clarify/enforce desired beha...

X Description: Fixes #14. Fixes #20. Changes proposed in this pull request Implement better support for rounding and float values in precisedelta. Add the test cases listed below, to clarify/enforce desired beha...

Opengraph URL: https://github.com/python-humanize/humanize/pull/39

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1cae2dac-367d-1f23-3f69-0edc459a70f4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id81AA:211953:1465FE1:1DC2F58:6A54CB83
html-safe-noncec302e271657b085bc674d5e8ecfe3cc5a4185f24b9c5bb94770a5a2613fa9595
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUFBOjIxMTk1MzoxNDY1RkUxOjFEQzJGNTg6NkE1NENCODMiLCJ2aXNpdG9yX2lkIjoiMjA1MjAxMzczODA0Mzk1MjAwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1cc79b5ef7afcaff39d2f012fa828e2a4fbcaa439a6af0601b8ab8ff1da43692
hovercard-subject-tagpull_request:985596315
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python-humanize/humanize/39/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/84ad7c82d9ca9d037865b0204c80634e9f063a2155621ad8342bafce05aff9d6/python-humanize/humanize/pull/39
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/84ad7c82d9ca9d037865b0204c80634e9f063a2155621ad8342bafce05aff9d6/python-humanize/humanize/pull/39
og:image:altFixes #14. Fixes #20. Changes proposed in this pull request Implement better support for rounding and float values in precisedelta. Add the test cases listed below, to clarify/enforce desired beha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenuztalgia
hostnamegithub.com
expected-hostnamegithub.com
None6e5f2e6ff3f430aa60a674066f957bca9f2106017e1b68126417422b58ce6e1e
turbo-cache-controlno-cache
go-importgithub.com/python-humanize/humanize git https://github.com/python-humanize/humanize.git
octolytics-dimension-user_id62149795
octolytics-dimension-user_loginpython-humanize
octolytics-dimension-repository_id466683324
octolytics-dimension-repository_nwopython-humanize/humanize
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id466683324
octolytics-dimension-repository_network_root_nwopython-humanize/humanize
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebe4d48619391052c9d312c7b587bb2ac38a97f57
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-humanize/humanize/pull/39#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F39
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F39
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python-humanize%2Fhumanize
Reloadhttps://github.com/python-humanize/humanize/pull/39
Reloadhttps://github.com/python-humanize/humanize/pull/39
Reloadhttps://github.com/python-humanize/humanize/pull/39
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
python-humanize https://github.com/python-humanize
humanizehttps://github.com/python-humanize/humanize
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
Notifications https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Fork 115 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Star 736 https://github.com/login?return_to=%2Fpython-humanize%2Fhumanize
Code https://github.com/python-humanize/humanize
Issues 12 https://github.com/python-humanize/humanize/issues
Pull requests 12 https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality 0 https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
Code https://github.com/python-humanize/humanize
Issues https://github.com/python-humanize/humanize/issues
Pull requests https://github.com/python-humanize/humanize/pulls
Actions https://github.com/python-humanize/humanize/actions
Security and quality https://github.com/python-humanize/humanize/security
Insights https://github.com/python-humanize/humanize/pulse
nuztalgiahttps://github.com/nuztalgia
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
nuztalgia:precisedelta-roundinghttps://github.com/nuztalgia/forked-humanize/tree/precisedelta-rounding
Conversationhttps://github.com/python-humanize/humanize/pull/39
Commits6 (6)https://github.com/python-humanize/humanize/pull/39/commits
Checkshttps://github.com/python-humanize/humanize/pull/39/checks
Files changedhttps://github.com/python-humanize/humanize/pull/39/files
Improve precisedelta to better support rounding and float values.https://github.com/python-humanize/humanize/pull/39#top
nuztalgiahttps://github.com/nuztalgia
python-humanize:mainhttps://github.com/python-humanize/humanize/tree/main
nuztalgia:precisedelta-roundinghttps://github.com/nuztalgia/forked-humanize/tree/precisedelta-rounding
https://github.com/nuztalgia
nuztalgiahttps://github.com/nuztalgia
Jul 2, 2022https://github.com/python-humanize/humanize/pull/39#issue-1292146450
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
#14https://github.com/python-humanize/humanize/issues/14
#20https://github.com/python-humanize/humanize/issues/20
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
https://github.com/codecov-commenter
codecov-commenterhttps://github.com/codecov-commenter
Jul 2, 2022https://github.com/python-humanize/humanize/pull/39#issuecomment-1172964829
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
Codecovhttps://app.codecov.io/gh/python-humanize/humanize/pull/39?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
e705e43https://app.codecov.io/gh/python-humanize/humanize/commit/e705e4327e4745dcc6ef9bf62db65b1eb5d0f844?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
9ff98f7https://app.codecov.io/gh/python-humanize/humanize/commit/9ff98f7f989638f1e1b7bdedf4869185c2cf73b6?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Flaghttps://app.codecov.io/gh/python-humanize/humanize/pull/39/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
macos-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/39/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
ubuntu-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/39/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
windows-latesthttps://app.codecov.io/gh/python-humanize/humanize/pull/39/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Click herehttps://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize#carryforward-flags-in-the-pull-request-comment
☔ View full report in Codecov by Sentryhttps://app.codecov.io/gh/python-humanize/humanize/pull/39?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Share it herehttps://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-humanize
Test Analyticshttps://docs.codecov.com/docs/test-analytics
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
https://github.com/nuztalgia
nuztalgiahttps://github.com/nuztalgia
Jul 2, 2022 https://github.com/python-humanize/humanize/pull/39#ref-issue-1224143981
Issues with odd months when restricting to "day" precision (precisedelta) #14 https://github.com/python-humanize/humanize/issues/14
https://github.com/nuztalgia
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F39
https://github.com/hugovk
hugovkhttps://github.com/hugovk
changelog: Fixed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Fixed%22
Jul 4, 2022https://github.com/python-humanize/humanize/pull/39#event-6928647130
nuztalgiahttps://github.com/nuztalgia
July 11, 2022 10:48https://github.com/python-humanize/humanize/pull/39#commits-pushed-2f92b59
https://github.com/nuztalgia
Add tests defining the desired behavior for precisedelta.https://github.com/python-humanize/humanize/pull/39/commits/2f92b59b3977c9c9d59df41c0a5342a24d3fd1f2
2f92b59https://github.com/python-humanize/humanize/pull/39/commits/2f92b59b3977c9c9d59df41c0a5342a24d3fd1f2
https://github.com/nuztalgia
Support float in precisedelta and fix bugs to make new tests pass.https://github.com/python-humanize/humanize/pull/39/commits/5b23416853c5c5fea165ad1adadc3118e2c05036
5b23416https://github.com/python-humanize/humanize/pull/39/commits/5b23416853c5c5fea165ad1adadc3118e2c05036
https://github.com/nuztalgia
Improve grammar and consistency in some internal docstrings/comments.https://github.com/python-humanize/humanize/pull/39/commits/6e8e9bbe8dff32790de6d83f9bbbe50f27ce03e7
6e8e9bbhttps://github.com/python-humanize/humanize/pull/39/commits/6e8e9bbe8dff32790de6d83f9bbbe50f27ce03e7
https://github.com/nuztalgia
Clean up some type annotations in time tests.https://github.com/python-humanize/humanize/pull/39/commits/27643cc8bafa3f33ecf05e289703ab4e6d536224
27643cchttps://github.com/python-humanize/humanize/pull/39/commits/27643cc8bafa3f33ecf05e289703ab4e6d536224
https://github.com/nuztalgia
Add more tests to catch the "odd months" bug described inhttps://github.com/python-humanize/humanize/pull/39/commits/2473d6dbbaaf98a70c2d3f2f597fd670d3249e7f
python-huma…https://github.com/python-humanize/humanize/issues/14
2473d6dhttps://github.com/python-humanize/humanize/pull/39/commits/2473d6dbbaaf98a70c2d3f2f597fd670d3249e7f
…nize#14https://github.com/python-humanize/humanize/issues/14
https://github.com/eldipa
https://github.com/nuztalgia
Propagate days to seconds and from there compute hours and minuteshttps://github.com/python-humanize/humanize/pull/39/commits/9ff98f7f989638f1e1b7bdedf4869185c2cf73b6
9ff98f7https://github.com/python-humanize/humanize/pull/39/commits/9ff98f7f989638f1e1b7bdedf4869185c2cf73b6
https://github.com/nuztalgia
nuztalgiahttps://github.com/nuztalgia
force-pushedhttps://github.com/python-humanize/humanize/compare/e2f2dad0a313961930c44488b7d7c6bd98f98dd8..9ff98f7f989638f1e1b7bdedf4869185c2cf73b6
e2f2dadhttps://github.com/python-humanize/humanize/commit/e2f2dad0a313961930c44488b7d7c6bd98f98dd8
9ff98f7https://github.com/python-humanize/humanize/commit/9ff98f7f989638f1e1b7bdedf4869185c2cf73b6
Compare https://github.com/python-humanize/humanize/compare/e2f2dad0a313961930c44488b7d7c6bd98f98dd8..9ff98f7f989638f1e1b7bdedf4869185c2cf73b6
July 11, 2022 18:20https://github.com/python-humanize/humanize/pull/39#event-6971770121
https://github.com/nuztalgia
nuztalgiahttps://github.com/nuztalgia
Jul 11, 2022https://github.com/python-humanize/humanize/pull/39#issuecomment-1180746594
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
#19https://github.com/python-humanize/humanize/pull/19
#14https://github.com/python-humanize/humanize/issues/14
@eldipahttps://github.com/eldipa
#39 (comment)https://github.com/python-humanize/humanize/pull/39#issue-1292146450
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
https://github.com/nuztalgia
nuztalgiahttps://github.com/nuztalgia
Jul 11, 2022 https://github.com/python-humanize/humanize/pull/39#ref-pullrequest-1224296231
Add type hints #15 https://github.com/python-humanize/humanize/pull/15
https://github.com/dangillet
dangillethttps://github.com/dangillet
May 26, 2025 https://github.com/python-humanize/humanize/pull/39#ref-pullrequest-3091551248
Fix precisedelta rounding #254 https://github.com/python-humanize/humanize/pull/254
https://github.com/dangillet
dangillethttps://github.com/dangillet
Nov 2, 2025https://github.com/python-humanize/humanize/pull/39#issuecomment-3477842244
@hugovkhttps://github.com/hugovk
#254https://github.com/python-humanize/humanize/pull/254
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Nov 7, 2025https://github.com/python-humanize/humanize/pull/39#issuecomment-3504958312
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
https://github.com/hugovk
hugovkhttps://github.com/hugovk
Nov 7, 2025https://github.com/python-humanize/humanize/pull/39#event-20798519422
https://github.co/hiddenchars
https://github.com/python-humanize/humanize/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-humanize%2Fhumanize%2Fpull%2F39
changelog: Fixed https://github.com/python-humanize/humanize/issues?q=state%3Aopen%20label%3A%22changelog%3A%20Fixed%22
precisedelta: 1 hour and 1 minutes https://github.com/python-humanize/humanize/issues/20
Issues with odd months when restricting to "day" precision (precisedelta) https://github.com/python-humanize/humanize/issues/14
Please reload this pagehttps://github.com/python-humanize/humanize/pull/39
https://github.com/nuztalgia
https://github.com/codecov-commenter
https://github.com/dangillet
https://github.com/hugovk
https://github.com/eldipa
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.