Source code for sci_watch.source_wrappers.abstract_wrapper

from abc import ABC, abstractmethod

from sci_watch.source_wrappers.document import Document


[docs]class SourceWrapper(ABC): """ Abstract class for source wrappers """ documents: list[Document]
[docs] @abstractmethod def update_documents(self) -> None: """ Update the `self.documents` of the source object """ raise NotImplementedError()