[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

@@ -56,7 +56,7 @@ def solution(n: int = 4000000) -> 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.")

View File

@@ -80,7 +80,7 @@ def solution(n: int = 600851475143) -> 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.")

View File

@@ -44,7 +44,7 @@ def solution(n: int = 600851475143) -> 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.")

View File

@@ -44,7 +44,7 @@ def solution(n: int = 600851475143) -> 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.")

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.")

View File

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