From bca91750bf49c19d5234ce1fc4cc3dcf43498421 Mon Sep 17 00:00:00 2001 From: Fie <40601523+Zkaij@users.noreply.github.com> Date: Tue, 3 Nov 2026 17:58:44 +0000 Subject: [PATCH 1/2] Fixed minor typos in json/__init__.py docstrings --- Lib/json/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/json/__init__.py b/Lib/json/__init__.py index f74b55ed0dd4f5..e960ffacd5c7bd 100644 --- a/Lib/json/__init__.py +++ b/Lib/json/__init__.py @@ -134,7 +134,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``) @@ -198,7 +198,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 From fc3ded2974e82167e76f659c5dab72fa1965a0f4 Mon Sep 17 00:00:00 2001 From: Fie <40601523+Zkaij@users.noreply.github.com> Date: Wed, 4 Nov 2026 18:57:18 +0000 Subject: [PATCH 2/2] Fixed typo in docstring --- Lib/json/encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/json/encoder.py b/Lib/json/encoder.py index 8768b63a3f8041..8f9d4426c63555 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