mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-25 12:25:10 -08:00
Python: Add type annotations
This commit is contained in:
committed by
Alexander Wunschik
parent
b95a514e84
commit
83b3dc402c
@@ -25,7 +25,7 @@ import math
|
||||
import time
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
# Constants
|
||||
STRINGS = ("Creative", "Computing") # Text to display
|
||||
MAX_LINES = 160
|
||||
@@ -42,7 +42,7 @@ def main():
|
||||
# "REMarkable program by David Ahl"
|
||||
|
||||
string_index = 0
|
||||
radians = 0
|
||||
radians: float = 0
|
||||
width = CENTER - 1
|
||||
|
||||
# "Start long loop"
|
||||
|
||||
Reference in New Issue
Block a user