File size: 301 Bytes
a2ff264
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from abc import ABC, abstractmethod

class IDataReader(ABC):
    @abstractmethod
    def read_pdf(self, file_path: str) -> str:
        pass
    @abstractmethod
    def read_docx(self, file_path: str) -> str:
        pass
    @abstractmethod
    def read_txt(self, file_path: str) -> str:
        pass