From b9df45bc68e8cb995b47ba9d40d75e3d47db2f8c Mon Sep 17 00:00:00 2001 From: Sheng Fan Date: Wed, 19 Mar 2025 15:44:06 +0800 Subject: [PATCH] chore(app/tool): remove constructor in LocalFileOperator --- app/tool/file_operators.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/tool/file_operators.py b/app/tool/file_operators.py index 5720172..dd64c83 100644 --- a/app/tool/file_operators.py +++ b/app/tool/file_operators.py @@ -42,8 +42,7 @@ class FileOperator(Protocol): class LocalFileOperator(FileOperator): """File operations implementation for local filesystem.""" - def __init__(self, encoding: str = "utf-8"): - self.encoding = encoding + encoding: str = "utf-8" async def read_file(self, path: PathLike) -> str: """Read content from a local file."""