mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-01 07:27:55 -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:
@@ -15,7 +15,7 @@ Ported by Dave LeCompte
|
||||
import time
|
||||
|
||||
|
||||
def print_with_tab(spaces_count, msg):
|
||||
def print_with_tab(spaces_count: int, msg: str) -> None:
|
||||
if spaces_count > 0:
|
||||
spaces = " " * spaces_count
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user