1
0
mirror of https://github.com/theoludwig/programming-challenges.git synced 2025-12-11 00:21:24 +01:00

style: fix editorconfig-checker linting

This commit is contained in:
Divlo
2021-07-06 16:21:01 +02:00
parent face9ed698
commit 33ecc52554
4 changed files with 34 additions and 37 deletions

View File

@@ -15,8 +15,8 @@ class Sudoku:
def __repr__(self) -> str:
result: str = '+' + '---+' * 9 + '\n'
for x in range(0, 9):
result += ('|' + ' {} {} {} |'*3).format(*
[y.number if y.number != 0 else ' ' for y in self.grid.data[x]])
format_result = [y.number for y in self.grid.data[x]]
result += ('|' + ' {} {} {} |'*3).format(*format_result)
result += '\n'
if x % 3 == 2:
result += '+' + '---+' * 9 + '\n'