mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-05 09:39:32 -08:00
Python: Add type annotations to all 'print' functions (#662)
* Add test to superstartrek and fixes several issues in superstartrek - I probably introduced them 🙈
* Mastermind type annotations
This commit is contained in:
@@ -13,7 +13,7 @@ def get_yes_no(prompt):
|
||||
return response[0] != "N"
|
||||
|
||||
|
||||
def print_header():
|
||||
def print_header() -> None:
|
||||
for _ in range(12):
|
||||
print()
|
||||
t10 = " " * 10
|
||||
@@ -28,7 +28,7 @@ def print_header():
|
||||
print()
|
||||
|
||||
|
||||
def print_instructions():
|
||||
def print_instructions() -> None:
|
||||
# Back in the 70s, at this point, the user would be prompted to
|
||||
# turn on their (printing) TTY to capture the output to hard copy.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user