You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/ruff_linter/src/rules/ruff/snapshots/ruff_linter__rules__ruff__tests__prefer_parentheses_getitem_tuple.snap
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ RUF031_prefer_parens.py:8:5: RUF031 [*] Use parentheses for tuples in subscripts
12
12
10| ]
13
13
11|d[(2,4)]
14
14
|
15
-
=help: Addparenthesesaroundtupleinsubscript.
15
+
=help: Parenthesizethetuple.
16
16
17
17
ℹ Safefix
18
18
55|2
@@ -35,7 +35,7 @@ RUF031_prefer_parens.py:16:3: RUF031 [*] Use parentheses for tuples in subscript
35
35
17|d[3,4]
36
36
18|d[5,6,7]
37
37
|
38
-
=help: Addparenthesesaroundtupleinsubscript.
38
+
=help: Parenthesizethetuple.
39
39
40
40
ℹ Safefix
41
41
1313|d[(8,)]
@@ -56,7 +56,7 @@ RUF031_prefer_parens.py:17:3: RUF031 [*] Use parentheses for tuples in subscript
56
56
18|d[5,6,7]
57
57
19|e= {((1,2),(3,4)):"a"}
58
58
|
59
-
=help: Addparenthesesaroundtupleinsubscript.
59
+
=help: Parenthesizethetuple.
60
60
61
61
ℹ Safefix
62
62
1414|d[tuple(1,2)]
@@ -77,7 +77,7 @@ RUF031_prefer_parens.py:18:3: RUF031 [*] Use parentheses for tuples in subscript
77
77
19|e= {((1,2),(3,4)):"a"}
78
78
20|e[((1,2),(3,4))]
79
79
|
80
-
=help: Addparenthesesaroundtupleinsubscript.
80
+
=help: Parenthesizethetuple.
81
81
82
82
ℹ Safefix
83
83
1515|d[tuple(8)]
@@ -98,7 +98,7 @@ RUF031_prefer_parens.py:21:3: RUF031 [*] Use parentheses for tuples in subscript
98
98
22|
99
99
23|token_features[
100
100
|
101
-
=help: Addparenthesesaroundtupleinsubscript.
101
+
=help: Parenthesizethetuple.
102
102
103
103
ℹ Safefix
104
104
1818|d[5,6,7]
@@ -118,7 +118,7 @@ RUF031_prefer_parens.py:26:3: RUF031 [*] Use parentheses for tuples in subscript
0 commit comments