mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-27 21:23:30 -08:00
Python: Add type annotations
This commit is contained in:
committed by
Alexander Wunschik
parent
b95a514e84
commit
83b3dc402c
@@ -24,6 +24,7 @@ Ported in 2021 by Jonas Nockert / @lemonad
|
||||
"""
|
||||
from math import sqrt
|
||||
from random import choice, random, uniform
|
||||
from typing import List
|
||||
|
||||
PAGE_WIDTH = 72
|
||||
|
||||
@@ -293,10 +294,10 @@ def print_header():
|
||||
)
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
print_header()
|
||||
|
||||
successful_jumps = []
|
||||
successful_jumps: List[float] = []
|
||||
while True:
|
||||
chute_altitude = jump()
|
||||
if chute_altitude > 0:
|
||||
|
||||
Reference in New Issue
Block a user