Python: Type annotations

This commit is contained in:
Martin Thoma
2022-04-02 10:06:15 +02:00
parent c8f86531e9
commit ac184fec42
25 changed files with 241 additions and 245 deletions

View File

@@ -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)