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
## Summary
closes#19204
## Test Plan
1. test case is added in dedicated file
2. locally tested the code manually
---------
Co-authored-by: Brent Westbrook <[email protected]>
Co-authored-by: CodeMan62 <[email protected]>
Copy file name to clipboardExpand all lines: crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__PERF401_PERF401.py.snap
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -241,5 +241,27 @@ PERF401.py:280:13: PERF401 Use `list.extend` to create a transformed list
Copy file name to clipboardExpand all lines: crates/ruff_linter/src/rules/perflint/snapshots/ruff_linter__rules__perflint__tests__preview__PERF401_PERF401.py.snap
+46Lines changed: 46 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -566,6 +566,8 @@ PERF401.py:280:13: PERF401 [*] Use `list.extend` to create a transformed list
566
566
279|iflambda: 0:
567
567
280|dst.append(i)
568
568
|^^^^^^^^^^^^^PERF401
569
+
281|
570
+
282|deff():
569
571
|
570
572
=help: Replaceforloopwithlist.extend
571
573
@@ -577,3 +579,47 @@ PERF401.py:280:13: PERF401 [*] Use `list.extend` to create a transformed list
0 commit comments