Reviewed-on: #1 Co-authored-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com> Co-committed-by: Vishesh 'ironeagle' Bangotra <aetoskia@gmail.com>
11 lines
275 B
Python
11 lines
275 B
Python
from abc import ABC, abstractmethod
|
|
from pathlib import Path
|
|
from typing import Any
|
|
|
|
class BasePDFClient(ABC):
|
|
@abstractmethod
|
|
def fetch(self, source: Any) -> bytes: ...
|
|
|
|
class FileSystemPDFClient(BasePDFClient):
|
|
def fetch(self, source: Path | str) -> bytes: ...
|