Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Support initializing root model fields with values of theroot
type in the mypy plugin#11212
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
… in the mypy pluginAlso use the `TypeInfo.has_base` method instead of iterating over the MROin various places.
Deploying pydantic-docs with |
Latest commit: | 9dd8b0a |
Status: | ✅ Deploy successful! |
Preview URL: | https://37172f3c.pydantic-docs.pages.dev |
Branch Preview URL: | https://root-model-plugin.pydantic-docs.pages.dev |
CodSpeed Performance ReportMerging#11212 willnot alter performanceComparing Summary
|
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.
This LGTM overall (thanks for adding the tests, those made the impact here quite clear), but let's have@dmontagu take a look as well given his familiarity with themypy
plugin.
bfeca9b
intomainUh oh!
There was an error while loading.Please reload this page.
antoniogamizdelgado commentedMar 31, 2025
Hello! We have started noticing these errors:
Can this change be the cause of these new error? It was working fine last week. |
antoniogamizdelgado commentedMar 31, 2025
Indeed, rolling back to 2.10.6 and this problem does not appear. So I guess this has pretty much broken our mypy checks :( |
@antoniogamizdelgado please open a new issue with a MRE. |
Also use the
TypeInfo.has_base
method instead of iterating over the MRO in various places.Closes#11203.
Change Summary
Related issue number
Checklist