Skip to content

Commit b7eb663

Browse files
GH1033 PR Feedback
1 parent a7a35bd commit b7eb663

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

pandas-stubs/io/json/_json.pyi

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,32 @@ def read_json(
9898
nrows: int | None = ...,
9999
storage_options: StorageOptions = ...,
100100
dtype_backend: DtypeBackend | NoDefault = ...,
101-
engine: Literal["pyarrow"] = "pyarrow",
101+
engine: Literal["ujson"] = ...,
102+
) -> JsonReader[DataFrame]: ...
103+
@overload
104+
def read_json(
105+
path_or_buf: FilePath | ReadBuffer[bytes],
106+
*,
107+
orient: JsonFrameOrient | None = ...,
108+
typ: Literal["frame"] = ...,
109+
dtype: bool | Mapping[HashableT, DtypeArg] | None = ...,
110+
convert_axes: bool | None = ...,
111+
convert_dates: bool | list[str] = ...,
112+
keep_default_dates: bool = ...,
113+
precise_float: bool = ...,
114+
date_unit: TimeUnit | None = ...,
115+
encoding: str | None = ...,
116+
encoding_errors: (
117+
Literal["strict", "ignore", "replace", "backslashreplace", "surrogateescape"]
118+
| None
119+
) = ...,
120+
lines: Literal[True] = True,
121+
chunksize: int,
122+
compression: CompressionOptions = ...,
123+
nrows: int | None = ...,
124+
storage_options: StorageOptions = ...,
125+
dtype_backend: DtypeBackend | NoDefault = ...,
126+
engine: Literal["pyarrow"],
102127
) -> JsonReader[DataFrame]: ...
103128
@overload
104129
def read_json(
@@ -148,7 +173,7 @@ def read_json(
148173
nrows: int | None = ...,
149174
storage_options: StorageOptions = ...,
150175
dtype_backend: DtypeBackend | NoDefault = ...,
151-
engine: Literal["pyarrow"] = "pyarrow",
176+
engine: Literal["pyarrow"],
152177
) -> Series: ...
153178
@overload
154179
def read_json(

0 commit comments

Comments
 (0)