You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
read_json accepts a list of paths at runtime but the type stub only allows a single path. #576
This runs fine and returns the union of both files.
However, pyright throws: Argument of type "list[str]" cannot be assigned to parameter "path_or_buffer" of type "str | bytes | PathLike[str] | PathLike[bytes] | IO[bytes] | IO[str]"
mypy throws a similar error.
Adding list[str] (and probably list[PathLike]) to path_or_buffer in the Python stub would fix this
Activity
Amir-R25 commentedon Jul 31, 2026
Happy to PR if maintainers confirm