chore(app/tool): remove constructor in LocalFileOperator

This commit is contained in:
Sheng Fan 2025-03-19 15:44:06 +08:00
parent d644d976b0
commit b9df45bc68

View File

@ -42,8 +42,7 @@ class FileOperator(Protocol):
class LocalFileOperator(FileOperator): class LocalFileOperator(FileOperator):
"""File operations implementation for local filesystem.""" """File operations implementation for local filesystem."""
def __init__(self, encoding: str = "utf-8"): encoding: str = "utf-8"
self.encoding = encoding
async def read_file(self, path: PathLike) -> str: async def read_file(self, path: PathLike) -> str:
"""Read content from a local file.""" """Read content from a local file."""