mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
Python: Add type annotations
This commit is contained in:
committed by
Alexander Wunschik
parent
b95a514e84
commit
83b3dc402c
@@ -20,8 +20,10 @@
|
||||
#
|
||||
########################################################
|
||||
|
||||
from typing import Tuple
|
||||
|
||||
def parse_input():
|
||||
|
||||
def parse_input() -> Tuple[int, bool]:
|
||||
"""
|
||||
function to parse input for weekday and leap year boolean
|
||||
"""
|
||||
@@ -137,7 +139,7 @@ def calendar(weekday, leap_year):
|
||||
print("\n")
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
print(" " * 32 + "CALENDAR")
|
||||
print(" " * 15 + "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY")
|
||||
print("\n" * 11)
|
||||
|
||||
Reference in New Issue
Block a user