From 193bc50a16af12c0ee64d3097b1c97290204cc8f Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Wed, 27 May 2026 15:50:05 +0800 Subject: [PATCH 1/2] commit --- stdlib/pprint.pyi | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/stdlib/pprint.pyi b/stdlib/pprint.pyi index 1d3705ec6ff6..9880c9a24b56 100644 --- a/stdlib/pprint.pyi +++ b/stdlib/pprint.pyi @@ -13,6 +13,7 @@ if sys.version_info >= (3, 15): depth: int | None = None, *, compact: bool = False, + expand: bool = False, sort_dicts: bool = True, underscore_numbers: bool = False, ) -> str: ... @@ -33,11 +34,12 @@ if sys.version_info >= (3, 15): def pp( object: object, stream: IO[str] | None = None, - indent: int = 4, - width: int = 88, + indent: int = 1, + width: int = 80, depth: int | None = None, *, compact: bool = False, + expand: bool = False, sort_dicts: bool = False, underscore_numbers: bool = False, ) -> None: ... @@ -59,11 +61,12 @@ if sys.version_info >= (3, 15): def pprint( object: object, stream: IO[str] | None = None, - indent: int = 4, - width: int = 88, + indent: int = 1, + width: int = 80, depth: int | None = None, *, compact: bool = False, + expand: bool = False, sort_dicts: bool = True, underscore_numbers: bool = False, ) -> None: ... From 2990dca0e6b11e9fe06dc04269a2939b69b7dcf8 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Wed, 27 May 2026 15:54:30 +0800 Subject: [PATCH 2/2] commit 2 --- stdlib/pprint.pyi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stdlib/pprint.pyi b/stdlib/pprint.pyi index 9880c9a24b56..98fd0118e699 100644 --- a/stdlib/pprint.pyi +++ b/stdlib/pprint.pyi @@ -8,8 +8,8 @@ __all__ = ["pprint", "pformat", "isreadable", "isrecursive", "saferepr", "Pretty if sys.version_info >= (3, 15): def pformat( object: object, - indent: int = 4, - width: int = 88, + indent: int = 1, + width: int = 80, depth: int | None = None, *, compact: bool = False, @@ -92,12 +92,13 @@ class PrettyPrinter: if sys.version_info >= (3, 15): def __init__( self, - indent: int = 4, - width: int = 88, + indent: int = 1, + width: int = 80, depth: int | None = None, stream: IO[str] | None = None, *, compact: bool = False, + expand: bool = False, sort_dicts: bool = True, underscore_numbers: bool = False, ) -> None: ...