Skip to content

Instantly share code, notes, and snippets.

@zehpatricio
Created March 30, 2022 20:15
Show Gist options
  • Save zehpatricio/593fc8da9c082f9bbfc475e3c42a9479 to your computer and use it in GitHub Desktop.
Save zehpatricio/593fc8da9c082f9bbfc475e3c42a9479 to your computer and use it in GitHub Desktop.
from app.domain.use_cases import base_location_use_case
from app.domain import model
class CreateLocationUseCase(base_location_use_case.BaseLocationUseCase):
def create(self, location: model.Location) -> int:
return self.repository.create(location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment