Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions _duckdb-stubs/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,14 @@ class DuckDBPyConnection:
) -> DuckDBPyRelation: ...
def read_json(
self,
path_or_buffer: str | bytes | os.PathLike[str] | os.PathLike[bytes] | typing.IO[bytes] | typing.IO[str],
# stubgen override: read_json accepts a list of paths at runtime, not just a single one (#576)
path_or_buffer: str
| bytes
| os.PathLike[str]
| os.PathLike[bytes]
| typing.IO[bytes]
| typing.IO[str]
| Sequence[str | bytes | os.PathLike[str] | os.PathLike[bytes] | typing.IO[bytes] | typing.IO[str]],
*,
columns: ColumnsTypes | None = None,
sample_size: int | None = None,
Expand Down Expand Up @@ -1191,7 +1198,14 @@ def read_csv(
strict_mode: bool | None = None,
) -> DuckDBPyRelation: ...
def read_json(
path_or_buffer: str | bytes | os.PathLike[str] | os.PathLike[bytes] | typing.IO[bytes] | typing.IO[str],
# stubgen override: read_json accepts a list of paths at runtime, not just a single one (#576)
path_or_buffer: str
| bytes
| os.PathLike[str]
| os.PathLike[bytes]
| typing.IO[bytes]
| typing.IO[str]
| Sequence[str | bytes | os.PathLike[str] | os.PathLike[bytes] | typing.IO[bytes] | typing.IO[str]],
*,
columns: ColumnsTypes | None = None,
sample_size: int | None = None,
Expand Down