Skip to content

Commit 70f176f

Browse files
don't allow None for CatalogGame attributes
1 parent 8cc6b5b commit 70f176f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/pygambit/catalog/catalog.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ class CatalogGame:
1515
Calling any subclass will return an instance of the corresponding game.
1616
"""
1717

18-
title: str | None = None
19-
num_players: int | None = None
20-
game_type: str | None = None
21-
description: str | None = None
22-
citation: str | None = None
18+
title: str
19+
num_players: int
20+
game_type: str
21+
description: str
22+
citation: str
2323

2424
def __new__(cls) -> Game:
2525
raise NotImplementedError("Subclasses must implement __new__ method")
@@ -54,7 +54,7 @@ class CatalogGameFromFile(CatalogGame):
5454
Calling any subclass will return an instance of the corresponding game.
5555
"""
5656

57-
game_file: str | None = None
57+
game_file: str
5858
_cached_game: Game | None = None
5959

6060
def __new__(cls) -> Game:

0 commit comments

Comments
 (0)