[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2026-03-02 18:33:47 +00:00
parent 98fceea2d4
commit 174a083157
13 changed files with 29 additions and 30 deletions

View File

@@ -47,7 +47,7 @@ def solution(n: int = 20) -> int:
try:
n = int(n)
except (TypeError, ValueError):
except TypeError, ValueError:
raise TypeError("Parameter n must be int or castable to int.")
if n <= 0:
raise ValueError("Parameter n must be greater than or equal to one.")