flask-webhook/flask_demo_api/protocols/repository.py

11 lines
299 B
Python
Raw Normal View History

2024-04-22 04:00:23 +03:00
from abc import abstractmethod
from typing import Protocol
from flask_demo_api.protocols.models import GenderResponse, PeopleRequest
class RepositoryGateway(Protocol):
@abstractmethod
def get_gender(self, people: PeopleRequest) -> GenderResponse | None:
raise NotImplementedError