Skip to content

Reject out-of-range int inputs for timedelta - #13973

Merged
Viicos merged 1 commit into
mainfrom
vp/timedelta-out-of-range
Oct 11, 2026
Merged

Viicos merged 1 commit into
mainfrom
vp/timedelta-out-of-range

Conversation

@Viicos

@Viicos Viicos commented Oct 10, 2026

Copy link
Copy Markdown
Member

Change Summary

Fixes #13969.

Related issue number

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@Viicos Viicos added the relnotes-fix Used for bugfixes. label Oct 10, 2026
@Viicos
Viicos enabled auto-merge (squash) October 10, 2026 23:55
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec82bf6
Status: ✅  Deploy successful!
Preview URL: https://2f0b7484.pydantic-docs.pages.dev
Branch Preview URL: https://vp-timedelta-out-of-range.pydantic-docs.pages.dev

View logs

@codspeed

codspeed Bot commented Oct 11, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 216 untouched benchmarks
⏩ 163 skipped benchmarks1


Comparing vp/timedelta-out-of-range (ec82bf6) with main (0b1dcd0)

Open in CodSpeed

Footnotes

  1. 163 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@Viicos
Viicos merged commit 0edb934 into main Oct 11, 2026
154 of 157 checks passed
@Viicos
Viicos deleted the vp/timedelta-out-of-range branch October 11, 2026 00:53
@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotes-fix Used for bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Huge int input to a timedelta field wraps to a small wrong timedelta

1 participant