Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community: Update file_path type in JSONLoader.__init__() signature #27535

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

orkhank
Copy link
Contributor

@orkhank orkhank commented Oct 22, 2024

  • Description: Change the type of the file_path argument from str | pathlib.Path to str | os.PathLike, since the latter is more widely used: https://stackoverflow.com/a/58541858

    This is a very minor fix. I was just annoyed to see the red underline displayed by Pylance in VS Code: reportArgumentType.
    image

    The changes do not affect the behavior of the code.

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Oct 22, 2024 8:30am

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Oct 22, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Oct 22, 2024
@efriis efriis merged commit 9a277cb into langchain-ai:master Oct 22, 2024
18 checks passed
ccurme pushed a commit that referenced this pull request Oct 22, 2024
…re (#27535)

- **Description:** Change the type of the `file_path` argument from `str
| pathlib.Path` to `str | os.PathLike`, since the latter is more widely
used: https://stackoverflow.com/a/58541858
  
This is a very minor fix. I was just annoyed to see the red underline
displayed by Pylance in VS Code: `reportArgumentType`.

![image](https://github.com/user-attachments/assets/719a7f8e-acca-4dfa-89df-925e1d938c71)
  
  The changes do not affect the behavior of the code.
@orkhank orkhank deleted the patch-1 branch October 23, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) lgtm PR looks good. Use to confirm that a PR is ready for merging. 🤖:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants