Demo entry 2363853

python type hints


Submitted by anonymous on Aug 14, 2015 at 21:39
Language: Python. Code size: 383 Bytes.

class BasePersistence(abc.ABC):

    """Base persistence backend."""

    def add_game(self, game_id, cards: list) -> None:
        Register a game.

        :param game_id: game's unique ID
        :param cards: a list of possible estimations in this game
        :raise GameExists: if a game with such ID already exists

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).