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_python_formatter/resources/test/fixtures/ruff/expression/dict.py
+8
Original file line number
Diff line number
Diff line change
@@ -48,3 +48,11 @@
48
48
C: 0.1* (10.0/12),
49
49
D: 0.1* (10.0/12),
50
50
}
51
+
52
+
# Regression test for formatter panic with comment after parenthesized dict value
53
+
# Originally found in https://github.com/bolucat/Firefox/blob/636a717ef025c16434997dc89e42351ef740ee6b/testing/marionette/client/marionette_driver/geckoinstance.py#L109
Copy file name to clipboardExpand all lines: crates/ruff_python_formatter/src/snapshots/ruff_python_formatter__tests__ruff_test__expression__dict_py.snap
+16
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,14 @@ mapping = {
54
54
C: 0.1* (10.0/12),
55
55
D: 0.1* (10.0/12),
56
56
}
57
+
58
+
# Regression test for formatter panic with comment after parenthesized dict value
59
+
# Originally found in https://github.com/bolucat/Firefox/blob/636a717ef025c16434997dc89e42351ef740ee6b/testing/marionette/client/marionette_driver/geckoinstance.py#L109
60
+
a = {
61
+
1: (2),
62
+
# comment
63
+
3: True,
64
+
}
57
65
```
58
66
59
67
@@ -112,6 +120,14 @@ mapping = {
112
120
C: 0.1* (10.0/12),
113
121
D: 0.1* (10.0/12),
114
122
}
123
+
124
+
# Regression test for formatter panic with comment after parenthesized dict value
125
+
# Originally found in https://github.com/bolucat/Firefox/blob/636a717ef025c16434997dc89e42351ef740ee6b/testing/marionette/client/marionette_driver/geckoinstance.py#L109
0 commit comments