mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Python: Type annotations
This commit is contained in:
@@ -93,7 +93,7 @@ def query_bets() -> Tuple[List[int], List[int]]:
|
||||
return bet_ids, bet_values
|
||||
|
||||
|
||||
def bet_results(bet_ids: List[int], bet_values: List[int], result):
|
||||
def bet_results(bet_ids: List[int], bet_values: List[int], result) -> int:
|
||||
"""Computes the results, prints them, and returns the total net winnings"""
|
||||
total_winnings = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user