-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upgrade mutable-argument-defaults to unsafe #8108
Upgrade mutable-argument-defaults to unsafe #8108
Conversation
PR Check ResultsEcosystemℹ️ ecosystem check detected changes. (+3, -3, 0 error(s)) airflow (+1, -1)
- [*] 16165 fixable with the `--fix` option (6215 hidden fixes can be enabled with the `--unsafe-fixes` option). + [*] 16165 fixable with the `--fix` option (6225 hidden fixes can be enabled with the `--unsafe-fixes` option). bokeh (+1, -1)
- [*] 17800 fixable with the `--fix` option (4370 hidden fixes can be enabled with the `--unsafe-fixes` option). + [*] 17800 fixable with the `--fix` option (4404 hidden fixes can be enabled with the `--unsafe-fixes` option). latch (+1, -1)
- [*] 206 fixable with the `--fix` option (35 hidden fixes can be enabled with the `--unsafe-fixes` option). + [*] 206 fixable with the `--fix` option (40 hidden fixes can be enabled with the `--unsafe-fixes` option). |
@@ -197,5 +197,5 @@ fn move_initialization( | |||
} | |||
|
|||
let initialization_edit = Edit::insertion(content, pos); | |||
Some(Fix::display_edits(default_edit, [initialization_edit])) | |||
Some(Fix::unsafe_edits(default_edit, [initialization_edit])) |
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 we add a note here explaining why the fix is unsafe? I'm not sure why it was marked as unapplicable originally as the fix looks relatively safe to me?
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.
Commented on this in the issue: #8104 (comment)
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.
I've added a Known problems
section to explain why the fix is unsafe.
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.
Thank you!
e25ed58
to
8f6247a
Compare
8f6247a
to
9edcb67
Compare
Summary
Fixes #8104
Test Plan
Covered by snapshot tests.