
from abc import abstractmethod
from typing import Optional

from stoq.data_classes import ArchiverResponse, Payload, RequestMeta
from stoq.plugins import BasePlugin


class ArchiverPlugin(BasePlugin):
    @abstractmethod
    def archive(
        self, payload: Payload, request_meta: RequestMeta
    ) -> Optional[ArchiverResponse]:
        pass

    def get(self, task: str) -> Optional[Payload]:
        pass


from abc import abstractmethod
from typing import Optional

from stoq.data_classes import ArchiverResponse, Payload, RequestMeta
from stoq.plugins import BasePlugin


class ArchiverPlugin(BasePlugin):
    def archive(
        self, payload: Payload, request_meta: RequestMeta
    ) -> Optional[ArchiverResponse]:
        pass

    def get(self, task: str) -> Optional[Payload]:
        pass

Remove @abstracmethod from archive method as well
Remove @abstracmethod from archive method as well
  
  from abc import abstractmethod
  from typing import Optional
  
  from stoq.data_classes import ArchiverResponse, Payload, RequestMeta
  from stoq.plugins import BasePlugin
  
  
  class ArchiverPlugin(BasePlugin):
-     @abstractmethod
      def archive(
          self, payload: Payload, request_meta: RequestMeta
      ) -> Optional[ArchiverResponse]:
          pass
  
      def get(self, task: str) -> Optional[Payload]:
          pass
  
Remove @abstracmethod from archive method as well
## Code Before:

from abc import abstractmethod
from typing import Optional

from stoq.data_classes import ArchiverResponse, Payload, RequestMeta
from stoq.plugins import BasePlugin


class ArchiverPlugin(BasePlugin):
    @abstractmethod
    def archive(
        self, payload: Payload, request_meta: RequestMeta
    ) -> Optional[ArchiverResponse]:
        pass

    def get(self, task: str) -> Optional[Payload]:
        pass

## Instruction:
Remove @abstracmethod from archive method as well
## Code After:

from abc import abstractmethod
from typing import Optional

from stoq.data_classes import ArchiverResponse, Payload, RequestMeta
from stoq.plugins import BasePlugin


class ArchiverPlugin(BasePlugin):
    def archive(
        self, payload: Payload, request_meta: RequestMeta
    ) -> Optional[ArchiverResponse]:
        pass

    def get(self, task: str) -> Optional[Payload]:
        pass
