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
[flake8-comprehensions]: Handle trailing comma in C403 fix (#16110)
## Summary
Resolves [#16099 ](#16099) based
on [#15929 ](#15929)
## Test Plan
Added test case `s = set([x for x in range(3)],)` and updated snapshot.
---------
Co-authored-by: dylwil3 <[email protected]>
Copy file name to clipboardExpand all lines: crates/ruff_linter/src/rules/flake8_comprehensions/snapshots/ruff_linter__rules__flake8_comprehensions__tests__C403_C403.py.snap
+20
Original file line number
Diff line number
Diff line change
@@ -292,6 +292,8 @@ C403.py:29:5: C403 [*] Unnecessary list comprehension (rewrite as a set comprehe
292
292
33||xforxinrange(3)]
293
293
34|| ))))
294
294
||_____^C403
295
+
35|
296
+
36| # Testtrailingcommacase
295
297
|
296
298
=help: Rewriteasasetcomprehension
297
299
@@ -308,3 +310,21 @@ C403.py:29:5: C403 [*] Unnecessary list comprehension (rewrite as a set comprehe
0 commit comments