integrations.web.api

integrations/web/api.py

 1"""
 2integrations/web/api.py
 3"""
 4
 5from typing import TYPE_CHECKING
 6
 7from integrations.base.interface import APIInterface
 8
 9if TYPE_CHECKING:
10    from integrations.base.interface import MessageParserProtocol
11
12
13class AdapterAPI(APIInterface):
14    """ダミークラス"""
15
16    def post(self, m: "MessageParserProtocol"):
17        """abstractmethod dummy"""
18
19        _ = m
class AdapterAPI(integrations.base.interface.APIInterface):
14class AdapterAPI(APIInterface):
15    """ダミークラス"""
16
17    def post(self, m: "MessageParserProtocol"):
18        """abstractmethod dummy"""
19
20        _ = m

ダミークラス

def post(self, m: integrations.protocols.MessageParserProtocol):
17    def post(self, m: "MessageParserProtocol"):
18        """abstractmethod dummy"""
19
20        _ = m

abstractmethod dummy