8000 gh-132021: Add bool type to the list of types that were allowed in ke… · srinivasreddy/cpython@a1e77cd · GitHub
[go: up one dir, main page]

Skip to content

Commit a1e77cd

Browse files
committed
pythongh-132021: Add bool type to the list of types that were allowed in keys of encode(...) method
1 parent 275056a commit a1e77cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/json/encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(self, *, skipkeys=False, ensure_ascii=True,
108108
"""Constructor for JSONEncoder, with sensible defaults.
109109
110110
If skipkeys is false, then it is a TypeError to attempt
111-
encoding of keys that are not str, int, float or None. If
111+
encoding of keys that are not bool, str, int, float or None. If
112112
skipkeys is True, such items are simply skipped.
113113
114114
If ensure_ascii is true, the output is guaranteed to be str

0 commit comments

Comments
 (0)
0