Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dannymeijer committed Oct 29, 2024
1 parent 4751375 commit 67c1e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/koheesio/spark/writers/file_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 67c1e68

Please sign in to comment.