Skip to content

Commit 95452e5

Browse files
[pre-commit.ci] pre-commit autoupdate (#368)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 016e0d2 commit 95452e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ repos:
88
- id: black
99

1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.0.285
11+
rev: v0.0.286
1212
hooks:
1313
- id: ruff

src/cleo/ui/table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ def _get_row_columns(self, row: Row) -> list[int]:
613613
Gets list of columns for the given row.
614614
"""
615615
assert self._number_of_columns is not None
616-
columns = list(range(0, self._number_of_columns))
616+
columns = list(range(self._number_of_columns))
617617

618618
for cell_key, cell in enumerate(row):
619619
if isinstance(cell, TableCell) and cell.colspan > 1:
@@ -631,7 +631,7 @@ def _calculate_column_widths(self, rows: Rows) -> None:
631631
Calculates column widths.
632632
"""
633633
assert self._number_of_columns is not None
634-
for column in range(0, self._number_of_columns):
634+
for column in range(self._number_of_columns):
635635
lengths = [0]
636636
for row in rows:
637637
if isinstance(row, TableSeparator):

0 commit comments

Comments
 (0)