From 5aa5beff69e535997100ee0b4a962ae1526a2b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sp=C3=A1=C4=8Dil?= Date: Sat, 27 Jun 2026 12:30:47 +0200 Subject: [PATCH] refactoring: oprava tuple[Any, ...] anotace --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index db7f25e..828daf1 100644 --- a/main.py +++ b/main.py @@ -51,7 +51,7 @@ def clear() -> None: else: _ = system('clear') -def evaluate(inp: Any, count: int, throw: str) -> tuple[Any, Any, Any, Any, Any]: +def evaluate(inp: Any, count: int, throw: str) -> tuple[Any, ...]: global h_bool @@ -77,7 +77,7 @@ def evaluate(inp: Any, count: int, throw: str) -> tuple[Any, Any, Any, Any, Any] inp = str(inp) if re.search(r"^\d+$", inp): if len(inp) > count: - data: tuple[Any, Any, Any, Any, Any] = ("msg", "ER01", "Tolika kostkami nemůžete hodit. Zkuste to znovu:", count, throw) + data: tuple[Any, ...] = ("msg", "ER01", "Tolika kostkami nemůžete hodit. Zkuste to znovu:", count, throw) else: for x in inp: x = int(x)