diff --git a/whist_server/services/room_db_service.py b/whist_server/services/room_db_service.py index b2acb1bd..0e0a67bc 100644 --- a/whist_server/services/room_db_service.py +++ b/whist_server/services/room_db_service.py @@ -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 @@ -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. """