From 535e74adb27c5254122b18b0e235af1d814b76dd Mon Sep 17 00:00:00 2001 From: rahul4732saini Date: Sun, 3 Nov 2024 14:46:47 +0530 Subject: [PATCH] Assign base class to all operator class in operators.py --- fise/query/operators.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fise/query/operators.py b/fise/query/operators.py index 410914c..3d1dcf8 100644 --- a/fise/query/operators.py +++ b/fise/query/operators.py @@ -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. @@ -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. @@ -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.