refactoring: oprava tuple[Any, ...] anotace
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user