mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-08 11:24:49 -08:00
Python: Add type annotations
This commit is contained in:
@@ -19,7 +19,7 @@ class Question:
|
||||
self.incorrect_message = incorrect_message
|
||||
self.correct_message = correct_message
|
||||
|
||||
def ask(self):
|
||||
def ask(self) -> bool:
|
||||
print(self.question)
|
||||
|
||||
options = [f"{i+1}){self.answer_list[i]}" for i in range(len(self.answer_list))]
|
||||
|
||||
Reference in New Issue
Block a user