Files
openide/python/testData/inspections/ListCreationOnlyConsecutiveAppends.py
Sergey Karpov c0842a6fde [pycharm] Squashed commits. PY-52478 Improve the names of quick fixes for "Unresolved references" and "Non-optimal list declaration"
(cherry picked from commit bce089714657aef8634ffb9c58da57fdb576b297)

IJ-CR-112218

GitOrigin-RevId: 8857c2951e44a1e9d0b54af1eb7c584f64fbc40d
2023-07-31 16:31:00 +00:00

5 lines
167 B
Python

<weak_warning descr="Multi-step list initialization can be replaced with a list literal">b<caret>ar = []</weak_warning>
bar.append(1)
bar.extend([2, 3])
bar.append(4)