Skip to content

Add support for multiple_of constraint in fraction and timedelta core schemas - #13873

Merged
Viicos merged 2 commits into
mainfrom
vp/fraction-multiple-of
Sep 25, 2026
Merged

Viicos merged 2 commits into
mainfrom
vp/fraction-multiple-of

Conversation

@Viicos

@Viicos Viicos commented Sep 25, 2026

Copy link
Copy Markdown
Member

Change Summary

Fixes #13868.

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

Comment thread pydantic/_internal/_known_annotated_metadata.py
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: e496b84
Status: ✅  Deploy successful!
Preview URL: https://9fe6fdb1.pydantic-docs.pages.dev
Branch Preview URL: https://vp-fraction-multiple-of.pydantic-docs.pages.dev

View logs

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic/_internal
  _known_annotated_metadata.py
  pydantic-core/python/pydantic_core
  core_schema.py
Project Total  

This report was generated by python-coverage-comment-action

@codspeed

codspeed Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 216 untouched benchmarks
⏩ 163 skipped benchmarks1


Comparing vp/fraction-multiple-of (e496b84) with main (a9a0e1d)

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 changed the title Add support for multiple_of constraint in fraction core schema Add support for multiple_of constraint in fraction and timedelta core schema Sep 25, 2026
@Viicos Viicos changed the title Add support for multiple_of constraint in fraction and timedelta core schema Add support for multiple_of constraint in fraction and timedelta core schemas Sep 25, 2026
@Viicos
Viicos merged commit 65d6754 into main Sep 25, 2026
93 checks passed
@Viicos
Viicos deleted the vp/fraction-multiple-of branch September 25, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multiple_of=0 still raises ZeroDivisionError for non-native numeric types

1 participant