mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
Python: Add types / fix type issues
This commit is contained in:
@@ -33,7 +33,7 @@ def calculate_score(rolls: List[int]) -> int:
|
||||
|
||||
|
||||
class Player:
|
||||
def __init__(self, name: str):
|
||||
def __init__(self, name: str) -> None:
|
||||
self.name = name
|
||||
self.rolls: List[int] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user