Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FixValueError on year zero#1583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
davidhewitt merged 1 commit intomainfromdh/date-ranges
Dec 18, 2024
Merged

FixValueError on year zero#1583

davidhewitt merged 1 commit intomainfromdh/date-ranges
Dec 18, 2024

Conversation

davidhewitt
Copy link
Contributor

Change Summary

Makes creation of a Pythondate ordatetime fail if the year is zero.

Related issue number

Fixespydantic/pydantic#10967

Checklist

  • Unit tests for the changes exist
  • Documentation reflects the changes where applicable
  • Pydantic tests pass with thispydantic-core (except for expected changes)
  • My PR is ready to review,please add a comment including the phrase "please review" to assign reviewers

tvuotila reacted with thumbs up emoji
@davidhewittdavidhewitt added the backport-2.27Needs backport to 2.27 labelDec 17, 2024
@codspeed-hqCodSpeed HQ
Copy link

CodSpeed Performance Report

Merging#1583 willnot alter performance

Comparingdh/date-ranges (36b1ffd) withmain (39435c2)

Summary

✅ 157 untouched benchmarks

Copy link
Contributor

@sydney-runklesydney-runkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Awesome, tysm!

@davidhewittdavidhewitt merged commit15adfc7 intomainDec 18, 2024
29 checks passed
@davidhewittdavidhewitt deleted the dh/date-ranges branchDecember 18, 2024 09:22
@ViicosViicos changed the titlefixValueError on year zeroFixValueError on year zeroJan 30, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sydney-runklesydney-runklesydney-runkle approved these changes

Assignees
No one assigned
Labels
backport-2.27Needs backport to 2.27
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Date field with year zero will raise ValueError instead of ValidationError
2 participants
@davidhewitt@sydney-runkle

[8]ページ先頭

©2009-2025 Movatter.jp