From 67c1e681dd65b7a72c5172ed71b9dd30e73f0589 Mon Sep 17 00:00:00 2001 From: Danny Meijer <10511979+dannymeijer@users.noreply.github.com> Date: Tue, 29 Oct 2024 16:04:11 +0100 Subject: [PATCH] typo --- src/koheesio/spark/writers/file_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/koheesio/spark/writers/file_writer.py b/src/koheesio/spark/writers/file_writer.py index b15a891..9e79d56 100644 --- a/src/koheesio/spark/writers/file_writer.py +++ b/src/koheesio/spark/writers/file_writer.py @@ -69,7 +69,7 @@ class FileWriter(Writer, ExtraParamsMixin): path: Union[Path, str] = Field(default=..., description="The path to write the file to") @field_validator("path") - def ensure_path_is_str(cls, v: Union[Path, str]) -> FileWriter: + def ensure_path_is_str(cls, v: Union[Path, str]) -> str: """Ensure that the path is a string as required by Spark.""" if isinstance(v, Path): return str(v.absolute().as_posix())