Python: Type annotations

This commit is contained in:
Martin Thoma
2022-04-02 10:06:15 +02:00
parent c8f86531e9
commit ac184fec42
25 changed files with 241 additions and 245 deletions

View File

@@ -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