Skip to content

Instantly share code, notes, and snippets.

@cassioeskelsen
Created November 6, 2021 23:58
Show Gist options
  • Save cassioeskelsen/1498983ab7c219079a70e68f5e9655c9 to your computer and use it in GitHub Desktop.
Save cassioeskelsen/1498983ab7c219079a70e68f5e9655c9 to your computer and use it in GitHub Desktop.
from abc import abstractmethod
from typing import List, Protocol, runtime_checkable
from src.domain.customer.customer import Customer
@runtime_checkable
class CustomerRepository(Protocol):
@abstractmethod
def get_customers(self) -> List[Customer]:
""" retorna uma lista de clientes"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment