https://github.com/python/cpython/commit/b2e4251ccf22ba9fff7becb6bc94dbb8dc36c310
commit: b2e4251ccf22ba9fff7becb6bc94dbb8dc36c310
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-11-04T21:04:12Z
summary:

[3.15] Fixed typos in `json` docstrings (GH-161261) (#161352)

(cherry picked from commit 43839687ac540404237feaa8dddb81e3c2187f01)

Co-authored-by: Fie <[email protected]>

files:
M Lib/json/__init__.py
M Lib/json/encoder.py

diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py
index 37a86831ff94838..d1dceafc58ff2e3 100644
--- a/Lib/json/__init__.py
+++ b/Lib/json/__init__.py
@@ -133,7 +133,7 @@ def dump(obj, fp, *, skipkeys=False, ensure_ascii=True, 
check_circular=True,
 
     If ``check_circular`` is false, then the circular reference check
     for container types will be skipped and a circular reference will
-    result in an ``RecursionError`` (or worse).
+    result in a ``RecursionError`` (or worse).
 
     If ``allow_nan`` is false, then it will be a ``ValueError`` to
     serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``)
@@ -197,7 +197,7 @@ def dumps(obj, *, skipkeys=False, ensure_ascii=True, 
check_circular=True,
 
     If ``check_circular`` is false, then the circular reference check
     for container types will be skipped and a circular reference will
-    result in an ``RecursionError`` (or worse).
+    result in a ``RecursionError`` (or worse).
 
     If ``allow_nan`` is false, then it will be a ``ValueError`` to
     serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``) in
diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py
index 718b3254241c565..c17b5fd98f87994 100644
--- a/Lib/json/encoder.py
+++ b/Lib/json/encoder.py
@@ -118,7 +118,7 @@ def __init__(self, *, skipkeys=False, ensure_ascii=True,
 
         If check_circular is true, then lists, dicts, and custom encoded
         objects will be checked for circular references during encoding to
-        prevent an infinite recursion (which would cause an RecursionError).
+        prevent an infinite recursion (which would cause a RecursionError).
         Otherwise, no such check takes place.
 
         If allow_nan is true, then NaN, Infinity, and -Infinity will be

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to