-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Infer final fields with a default value as class variables in the mypy plugin #11121
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploying pydantic-docs with
|
Latest commit: |
7e7f616
|
Status: | ✅ Deploy successful! |
Preview URL: | https://21c3e866.pydantic-docs.pages.dev |
Branch Preview URL: | https://final-mypy-plugin.pydantic-docs.pages.dev |
CodSpeed Performance ReportMerging #11121 will not alter performanceComparing Summary
|
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
@@ -761,6 +761,10 @@ def collect_field_or_class_var_from_stmt( # noqa C901 | |||
) | |||
node.type = AnyType(TypeOfAny.from_error) | |||
|
|||
if node.is_final and has_default: | |||
# TODO this path should be removed (see https://github.com/pydantic/pydantic/issues/11119) |
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.
Can you add a note about when, or what is blocking 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.
The linked issue should be enough?
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.
One request, thanks!
Fixes #10474, closes #10848.
Change Summary
Related issue number
Checklist