mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Python: Type annotations
This commit is contained in:
@@ -53,7 +53,7 @@ def print_right() -> None:
|
||||
print(random.choice(right_words))
|
||||
|
||||
|
||||
def ask_question(question_number):
|
||||
def ask_question(question_number: int) -> None:
|
||||
words = synonym_words[question_number]
|
||||
clues = words[:]
|
||||
base_word = clues.pop(0)
|
||||
|
||||
Reference in New Issue
Block a user