Skip to content

Commit

Permalink
Add PurePosixPath to list of allowed file-paths (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagosalvatore authored Oct 25, 2024
1 parent 2652618 commit 3ab2ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ async def aload_data(
fs: Optional[AbstractFileSystem] = None,
) -> List[Document]:
"""Load data from the input path."""
if isinstance(file_path, (str, Path, bytes, BufferedIOBase)):
if isinstance(file_path, (str, PurePosixPath, Path, bytes, BufferedIOBase)):
return await self._aload_data(
file_path, extra_info=extra_info, fs=fs, verbose=self.verbose
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "llama-parse"
version = "0.5.11"
version = "0.5.12"
description = "Parse files into RAG-Optimized formats."
authors = ["Logan Markewich <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 3ab2ce2

Please sign in to comment.