langchain
9a277cbe - community: Update `file_path` type in `JSONLoader.__init__()` signature (#27535)

Commit
1 year ago
community: Update `file_path` type in `JSONLoader.__init__()` signature (#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.
Author
Parents
Loading