File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crates/ruff_linter/src/rules/pyflakes/rules Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ use crate::registry::Rule;
43
43
/// ## Fix safety
44
44
///
45
45
/// This rule's fix is marked as unsafe because removing a repeated dictionary key
46
- /// may delete comments that are attached to the removed key-value pair.
46
+ /// may delete comments that are attached to the removed key-value pair. This can also change
47
+ /// the program's behavior if the value expressions have side effects.
47
48
///
48
49
/// ## References
49
50
/// - [Python documentation: Dictionaries](https://docs.python.org/3/tutorial/datastructures.html#dictionaries)
@@ -114,7 +115,8 @@ impl Violation for MultiValueRepeatedKeyLiteral {
114
115
/// ## Fix safety
115
116
///
116
117
/// This rule's fix is marked as unsafe because removing a repeated dictionary key
117
- /// may delete comments that are attached to the removed key-value pair.
118
+ /// may delete comments that are attached to the removed key-value pair. This can also change
119
+ /// the program's behavior if the value expressions have side effects.
118
120
///
119
121
/// ## References
120
122
/// - [Python documentation: Dictionaries](https://docs.python.org/3/tutorial/datastructures.html#dictionaries)
You can’t perform that action at this time.
0 commit comments