From 1d72710d3c8471d2501ff5ebdf6f1433a9652721 Mon Sep 17 00:00:00 2001 From: tygoee Date: Tue, 5 Mar 2024 13:56:51 +0100 Subject: [PATCH] Fixed wrong types --- src/runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runner.py b/src/runner.py index 54408cc..ee00991 100644 --- a/src/runner.py +++ b/src/runner.py @@ -108,10 +108,10 @@ def _cli(cls, args: _Args): _T = TypeVar("_T") - def ask(arg: _T | None, question: _T) -> _T | str: + def ask(arg: _T | None, question: str) -> _T | str: return input(question) if arg is None else arg - def ask_yes(arg: _T, question: _T) -> bool: + def ask_yes(arg: bool, question: str) -> bool: return input(question).lower() == 'y' if arg else arg # Define all questions