Skip to content

Instantly share code, notes, and snippets.

@zehpatricio
Created April 14, 2022 12:42
Show Gist options
  • Save zehpatricio/9593e99c9bd62fd1b5198c27827b4f7b to your computer and use it in GitHub Desktop.
Save zehpatricio/9593e99c9bd62fd1b5198c27827b4f7b to your computer and use it in GitHub Desktop.
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