Enable ruff UP031 rule (#11388)

This commit is contained in:
Maxim Smolskiy
2024-04-30 07:40:26 +03:00
committed by GitHub
parent 3925b8155b
commit 2d6be5fbb0
2 changed files with 4 additions and 3 deletions

View File

@ -150,7 +150,7 @@ def solve_all(grids, name="", showif=0.0):
display(grid_values(grid))
if values:
display(values)
print("(%.5f seconds)\n" % t)
print(f"({t:.5f} seconds)\n")
return (t, solved(values))
times, results = zip(*[time_solve(grid) for grid in grids])
@ -217,4 +217,4 @@ if __name__ == "__main__":
start = time.monotonic()
solve(puzzle)
t = time.monotonic() - start
print("Solved: %.5f sec" % t)
print(f"Solved: {t:.5f} sec")