Skip to content

Commit

Permalink
Assign base class to all operator class in operators.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul4732saini committed Nov 3, 2024
1 parent 285b699 commit 535e74a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fise/query/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class FileSystemOperator(ABC):
def delete(self, condition: Callable[[BaseEntity], bool], skip_err: bool): ...


class FileQueryOperator:
class FileQueryOperator(FileSystemOperator):
"""
FileQueryOperator defines methods for performing
file search and delete operations.
Expand Down Expand Up @@ -141,7 +141,7 @@ def delete(self, condition: Callable[[File], bool], skip_err: bool) -> None:
)


class FileDataQueryOperator:
class FileDataQueryOperator(DataOperator):
"""
FileDataQueryOperator defines methods for performing
text and byte search operations within files.
Expand Down Expand Up @@ -228,7 +228,7 @@ def search(
return pd.DataFrame(records, columns=columns)


class DirectoryQueryOperator:
class DirectoryQueryOperator(FileSystemOperator):
"""
DirectoryQueryOperator defines methods for performing
directory search and delete operations.
Expand Down

0 comments on commit 535e74a

Please sign in to comment.