Files
docutranslate/docutranslate/exporter/interfaces.py
xunbu 46a7cf4663 fix
2025-07-29 23:19:48 +08:00

16 lines
396 B
Python

from typing import Protocol, TypeVar, Any, Self
from docutranslate.exporter.export_config import ExportConfig
from docutranslate.ir.document import Document
D_in = TypeVar('D_in', bound=Document)
class Exporter(Protocol[D_in]):
@classmethod
def from_config(cls, export_config: ExportConfig | None = None) -> Self:
...
def export(self, document: D_in) -> Any:
...