Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codspeed-hqbot commentedJan 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
CodSpeed Performance ReportMerging#11239 willnot alter performanceComparing Summary
|
cloudflare-workers-and-pagesbot commentedJan 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Deploying pydantic-docs with |
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 |
github-actionsbot commentedJan 8, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Coverage reportClick to see where and how coverage changed
This report was generated bypython-coverage-comment-action |
cc@adriangb, more progress on simplifying logic here :) No need for a review, but wanted to let you know. |
There was a problem hiding this 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
I'm not opposed to allowing metadata access, though this opens a can of worms in terms of consistency with annotation application. |
4e055d5
intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Follow up to#10846
See the description of that PR for more detail.
One consequence here is slightly different behavior for
maxlen
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.