11 lines
267 B
Python
11 lines
267 B
Python
from abc import ABC, abstractmethod
|
|
from pathlib import Path
|
|
from typing import Any
|
|
|
|
class BaseCsvClient(ABC):
|
|
@abstractmethod
|
|
def fetch(self, source: Any) -> bytes: ...
|
|
|
|
class FileSystemCsvClient(BaseCsvClient):
|
|
def fetch(self, path: Path) -> bytes: ...
|