Skip to content

Commit

Permalink
Apply ruff/Perflint rule PERF402
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 26, 2024
1 parent 95ae5eb commit 09550a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tabulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,8 +1108,7 @@ def _flat_list(nested_list):
ret = []
for item in nested_list:
if isinstance(item, list):
for subitem in item:
ret.append(subitem)
ret.extend(item)
else:
ret.append(item)
return ret
Expand Down

0 comments on commit 09550a7

Please sign in to comment.