Created
November 6, 2021 23:58
-
-
Save cassioeskelsen/1498983ab7c219079a70e68f5e9655c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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