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

Movedeque schema gen toGenerateSchema class#11239

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
sydney-runkle merged 3 commits intomainfromremove-deq-prep-anns
Jan 9, 2025

Conversation

sydney-runkle
Copy link
Contributor

@sydney-runklesydney-runkle commentedJan 8, 2025
edited
Loading

Follow up to#10846

See the description of that PR for more detail.

One consequence here is slightly different behavior formaxlen being set fordeque types, but I think this is worth the significant simplification in internal logic we see here.

max_length constraints are still enforced, but we no longer monkeypatch themaxlen frommax_length on the deque. If users want this, they should write a custom validator.

I'll be writing an in depth explanation of changes in the changelog for v2.11 related to this PR sequence.

@github-actionsgithub-actionsbot added the relnotes-fixUsed for bugfixes. labelJan 8, 2025
@codspeed-hqCodSpeed HQ
Copy link

codspeed-hqbot commentedJan 8, 2025
edited
Loading

CodSpeed Performance Report

Merging#11239 willnot alter performance

Comparingremove-deq-prep-anns (34193ea) withmain (8fc509d)

Summary

✅ 46 untouched benchmarks

@cloudflare-workers-and-pagesCloudflare Workers and Pages
Copy link

cloudflare-workers-and-pagesbot commentedJan 8, 2025
edited
Loading

Deploying pydantic-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit:34193ea
Status: ✅  Deploy successful!
Preview URL:https://f9fb4ec4.pydantic-docs.pages.dev
Branch Preview URL:https://remove-deq-prep-anns.pydantic-docs.pages.dev

View logs

@sydney-runklesydney-runkle added third-party-testsAdd this label on a PR to trigger 3rd party tests and removed third-party-testsAdd this label on a PR to trigger 3rd party tests labelsJan 8, 2025
@github-actionsGitHub Actions
Copy link
Contributor

github-actionsbot commentedJan 8, 2025
edited
Loading

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  pydantic/_internal
  _generate_schema.py
  _validators.py
Project Total 

This report was generated bypython-coverage-comment-action

@sydney-runkle
Copy link
ContributorAuthor

cc@adriangb, more progress on simplifying logic here :)

No need for a review, but wanted to let you know.

Copy link
Member

@ViicosViicos left a comment

Choose a reason for hiding this comment

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

Great

The fact that we can't access the metadata anymore to set themaxlen attribute shows a limitation of the current API, I'll maybe include it in my write up

sydney-runkle reacted with thumbs up emoji
@sydney-runkle
Copy link
ContributorAuthor

The fact that we can't access the metadata anymore to set the maxlen attribute shows a limitation of the current API, I'll maybe include it in my write up.

I'm not opposed to allowing metadata access, though this opens a can of worms in terms of consistency with annotation application.

@sydney-runklesydney-runkle merged commit4e055d5 intomainJan 9, 2025
61 checks passed
@sydney-runklesydney-runkle deleted the remove-deq-prep-anns branchJanuary 9, 2025 20:10
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@ViicosViicosViicos approved these changes

Assignees
No one assigned
Labels
relnotes-fixUsed for bugfixes.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@sydney-runkle@Viicos

[8]ページ先頭

©2009-2025 Movatter.jp