using doc-forge (#1)
Reviewed-on: #1 Co-authored-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com> Co-committed-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com>
This commit is contained in:
11
omniread/pdf/parser.pyi
Normal file
11
omniread/pdf/parser.pyi
Normal file
@@ -0,0 +1,11 @@
|
||||
from abc import abstractmethod
|
||||
from typing import Generic, TypeVar
|
||||
from omniread.core.content import ContentType
|
||||
from omniread.core.parser import BaseParser
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
class PDFParser(BaseParser[T], Generic[T]):
|
||||
supported_types: set[ContentType]
|
||||
@abstractmethod
|
||||
def parse(self) -> T: ...
|
||||
Reference in New Issue
Block a user