Skip to content

Commit 62ce800

Browse files
GH1033 PR feedback
1 parent 53af846 commit 62ce800

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas-stubs/io/json/_json.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def read_json(
4242
Literal["strict", "ignore", "replace", "backslashreplace", "surrogateescape"]
4343
| None
4444
) = ...,
45-
lines: bool,
45+
lines: Literal[True],
4646
chunksize: int,
4747
compression: CompressionOptions = ...,
4848
nrows: int | None = ...,
@@ -92,7 +92,7 @@ def read_json(
9292
Literal["strict", "ignore", "replace", "backslashreplace", "surrogateescape"]
9393
| None
9494
) = ...,
95-
lines: Literal[True] = True,
95+
lines: Literal[True],
9696
chunksize: int,
9797
compression: CompressionOptions = ...,
9898
nrows: int | None = ...,
@@ -117,7 +117,7 @@ def read_json(
117117
Literal["strict", "ignore", "replace", "backslashreplace", "surrogateescape"]
118118
| None
119119
) = ...,
120-
lines: Literal[True] = True,
120+
lines: Literal[True],
121121
chunksize: int,
122122
compression: CompressionOptions = ...,
123123
nrows: int | None = ...,
@@ -167,7 +167,7 @@ def read_json(
167167
Literal["strict", "ignore", "replace", "backslashreplace", "surrogateescape"]
168168
| None
169169
) = ...,
170-
lines: Literal[True] = True,
170+
lines: Literal[True],
171171
chunksize: None = ...,
172172
compression: CompressionOptions = ...,
173173
nrows: int | None = ...,
@@ -217,7 +217,7 @@ def read_json(
217217
Literal["strict", "ignore", "replace", "backslashreplace", "surrogateescape"]
218218
| None
219219
) = ...,
220-
lines: Literal[True] = True,
220+
lines: Literal[True],
221221
chunksize: None = ...,
222222
compression: CompressionOptions = ...,
223223
nrows: int | None = ...,

tests/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,5 +1742,5 @@ def test_read_json_engine() -> None:
17421742

17431743
if TYPE_CHECKING_INVALID_USAGE:
17441744
pd.read_json(dd, lines=False, engine="pyarrow") # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]
1745-
pd.read_json(io.StringIO(data), engine="pyarrow") # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]
1745+
pd.read_json(io.StringIO(data), engine="pyarrow") # type: ignore[call-overload] # pyright: ignore[reportArgumentType]
17461746
pd.read_json(io.StringIO(data), lines=True, engine="pyarrow") # type: ignore[call-overload] # pyright: ignore[reportArgumentType, reportCallIssue]

0 commit comments

Comments
 (0)