11 lines
299 B
Python
11 lines
299 B
Python
|
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
|