Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2023
1 parent f995eac commit ba6afc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cleo/ui/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def _get_row_columns(self, row: Row) -> list[int]:
Gets list of columns for the given row.
"""
assert self._number_of_columns is not None
columns = list(range(0, self._number_of_columns))
columns = list(range(self._number_of_columns))

for cell_key, cell in enumerate(row):
if isinstance(cell, TableCell) and cell.colspan > 1:
Expand All @@ -631,7 +631,7 @@ def _calculate_column_widths(self, rows: Rows) -> None:
Calculates column widths.
"""
assert self._number_of_columns is not None
for column in range(0, self._number_of_columns):
for column in range(self._number_of_columns):
lengths = [0]
for row in rows:
if isinstance(row, TableSeparator):
Expand Down

0 comments on commit ba6afc8

Please sign in to comment.