Skip to content

Commit 65bf672

Browse files
authored
Merge pull request #3 from SFuller4/to-json-append-mode
Adjusting Typing from str to Literal["a", "w"] per request.
2 parents 8105e0f + 51c5c25 commit 65bf672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/json/_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def to_json(
136136
index: bool = True,
137137
indent: int = 0,
138138
storage_options: StorageOptions = None,
139-
mode: str = "w",
139+
mode: Literal["a", "w"] = "w",
140140
) -> str | None:
141141

142142
if not index and orient not in ["split", "table"]:

0 commit comments

Comments
 (0)