14 lines
247 B
Python
14 lines
247 B
Python
from __future__ import annotations
|
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
from app.models import Offer
|
|
|
|
|
|
class OfferSource(ABC):
|
|
source_name: str
|
|
|
|
@abstractmethod
|
|
def fetch_offers(self) -> list[Offer]:
|
|
raise NotImplementedError
|