mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 04:15:45 -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:
@@ -141,7 +141,7 @@ def str_with_tab(indent: int, text: str, uppercase: bool = True) -> str:
|
||||
return " " * indent + text
|
||||
|
||||
|
||||
def intro():
|
||||
def intro() -> None:
|
||||
"""Print the intro and print instructions if desired."""
|
||||
print(str_with_tab(33, "Queen"))
|
||||
print(str_with_tab(15, "Creative Computing Morristown, New Jersey"))
|
||||
|
||||
Reference in New Issue
Block a user