Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Fixed wrong types
Browse files Browse the repository at this point in the history
  • Loading branch information
tygoee committed Mar 5, 2024
1 parent 9a089ad commit 1d72710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d72710

Please sign in to comment.