Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Rewrite serialization documentation#12018
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
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
cloudflare-workers-and-pagesbot commentedJun 26, 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: | 7f86019 |
Status: | ✅ Deploy successful! |
Preview URL: | https://7a42ac80.pydantic-docs.pages.dev |
Branch Preview URL: | https://serialization-rewrite.pydantic-docs.pages.dev |
@@ -695,6 +695,41 @@ Here are some additional notes on the behavior of [`model_construct()`][pydantic | |||
not stored in `__pydantic_extra__` or `__dict__` on the instance. | |||
* Unlike when instantiating the model with validation, a call to [`model_construct()`][pydantic.main.BaseModel.model_construct] with [`extra`][pydantic.ConfigDict.extra] set to `'forbid'` doesn't raise an error in the presence of data not corresponding to fields. Rather, said input data is simply ignored. | |||
## Model copy |
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.
Moved from the serialization page, I don't think model copies have any relation with serialization.
codspeed-hqbot commentedJun 26, 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#12018 willnot alter performanceComparing Summary
|
github-actionsbot commentedJun 26, 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 |
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.
WOW!! This looks great@Viicos, thanks for all of your work on improving these highly trafficked conceptual docs.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Change Summary
Fixes#11491.
This aligns the serialization documentation with the previousvalidators documentation rewrite.
The diff will be unreadable so it is best to check the preview instead.
As header names were changed for the most part, fallback headings were added to avoid creating dead links.
Changes:
exclude_none
and friends.Related issue number
Checklist