Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#368)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Aug 31, 2023
1 parent 016e0d2 commit 95452e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ repos:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.285
rev: v0.0.286
hooks:
- id: ruff
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 95452e5

Please sign in to comment.