diff --git a/src/cleo/ui/table.py b/src/cleo/ui/table.py index a95e0b92..2499b730 100644 --- a/src/cleo/ui/table.py +++ b/src/cleo/ui/table.py @@ -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: @@ -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):