14 lines
314 B
Python
14 lines
314 B
Python
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 CsvParserBase(BaseParser[T], Generic[T]):
|
|
supported_types: set[ContentType]
|
|
|
|
@abstractmethod
|
|
def parse(self) -> T: ...
|