Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.2k
Suggest usingprop-decorator
error code to ignore mypy errors with@computed_field
#11547
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
please review |
codspeed-hqbot commentedMar 13, 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#11547 willnot alter performanceComparing Summary
|
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.
Thanks, let's not mention the backwards compatible code, users are strongly encouraged to update their type checker version.
prop-decorator
error code to ignore mypy errors with@computed_field
b9fb3f1
intopydantic:mainUh 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
For property decorators,
# type: ignore[prop-decorator]
is the correct type ignore comment in Mypy,# type: ignore[misc]
should only be used for backward compatibly.Checklist
Selected Reviewer:@sydney-runkle