Created
April 14, 2022 12:42
-
-
Save zehpatricio/9593e99c9bd62fd1b5198c27827b4f7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import abc | |
from typing import List | |
from app.domain import model | |
class LocationRepository(metaclass=abc.ABCMeta): | |
@abc.abstractmethod | |
def list(self) -> List[model.Location]: | |
raise NotImplementedError | |
@abc.abstractmethod | |
def create(self, location: model.Location) -> int: | |
raise NotImplementedError |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment