27 lines
593 B
Python
27 lines
593 B
Python
from dataclasses import dataclass
|
|
from typing import Protocol
|
|
|
|
import papis.api
|
|
import papis.commands.edit
|
|
import papis.config
|
|
import papis.document
|
|
import papis.git
|
|
import papis.logging
|
|
import papis.notes
|
|
|
|
from papis_extract.annotation import Annotation
|
|
from papis_extract.formatter import Formatter
|
|
|
|
logger = papis.logging.get_logger(__name__)
|
|
|
|
|
|
@dataclass
|
|
class Exporter(Protocol):
|
|
formatter: Formatter
|
|
edit: bool = False
|
|
git: bool = False
|
|
force: bool = False
|
|
|
|
def run(
|
|
self, annot_docs: list[tuple[papis.document.Document, list[Annotation]]]
|
|
) -> None: ...
|