Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Raise a deprecation warning when a field is annotated as final with a default value#11168
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
cloudflare-workers-and-pagesbot commentedDec 21, 2024 • 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: | d4fc9f1 |
Status: | ✅ Deploy successful! |
Preview URL: | https://f378e618.pydantic-docs.pages.dev |
Branch Preview URL: | https://11119-1.pydantic-docs.pages.dev |
codspeed-hqbot commentedDec 21, 2024 • 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#11168 willnot alter performanceComparing Summary
|
github-actionsbot commentedDec 21, 2024 • 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 |
… default valueAlso adapt the `collect_model_fields` logic a bit.
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.
Nice work on the refactor usingassigned_value
instead of re-fetching depending on the branch you hit.
LGTM overall, I left a few minor change requests.
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.
Do we know why we treated finalvars with defaults as classvars in the past? |
As perthe PR that implemented this:
|
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.
Feedback looks good
d823d8c
intomainUh oh!
There was an error while loading.Please reload this page.
Also adapt the
collect_model_fields
logic a bit.Part of#11119.
Change Summary
Related issue number
Checklist