Skip to content

Commit

Permalink
Merge pull request #398 from Whist-Team/fix/type-hints
Browse files Browse the repository at this point in the history
FIX: type hints
  • Loading branch information
iTitus authored Nov 24, 2022
2 parents fca2941 + 3fed2fc commit 7d771df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whist_server/services/room_db_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __new__(cls):
@classmethod
def create_with_pwd(cls, room_name: str, creator: Player, hashed_password: Optional[str] = None,
min_player: Optional[int] = None,
max_player: Optional[int] = None) -> 'RoomInDb':
max_player: Optional[int] = None) -> RoomInDb:
"""
Factory method to create a Room in database object.
:param room_name: name of this session
Expand Down Expand Up @@ -58,7 +58,7 @@ def add(cls, room: RoomInDb) -> str:
return str(room_id.inserted_id)

@classmethod
def all(cls) -> [RoomInDb]:
def all(cls) -> list[RoomInDb]:
"""
Returns all rooms in the database.
"""
Expand Down

0 comments on commit 7d771df

Please sign in to comment.