From 23352ddd94cf0eb9cd4b4a4eb22ded0c7531aa5b Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Mon, 16 Mar 2026 08:09:41 +0800 Subject: [PATCH 1/4] Add local_exit annotation under code.pyi See #15518 --- stdlib/code.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/code.pyi b/stdlib/code.pyi index 0b13c8a5016d..d3ad6fbf513c 100644 --- a/stdlib/code.pyi +++ b/stdlib/code.pyi @@ -23,6 +23,7 @@ class InteractiveInterpreter: class InteractiveConsole(InteractiveInterpreter): buffer: list[str] # undocumented filename: str # undocumented + local_exit: bool # undocumented if sys.version_info >= (3, 13): def __init__( self, locals: dict[str, Any] | None = None, filename: str = "", *, local_exit: bool = False From ec7d558c0f20d3b9b5ddef7f00570bf4489a01cb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 00:13:00 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/code.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/code.pyi b/stdlib/code.pyi index d3ad6fbf513c..c48f61312c98 100644 --- a/stdlib/code.pyi +++ b/stdlib/code.pyi @@ -23,7 +23,7 @@ class InteractiveInterpreter: class InteractiveConsole(InteractiveInterpreter): buffer: list[str] # undocumented filename: str # undocumented - local_exit: bool # undocumented + local_exit: bool # undocumented if sys.version_info >= (3, 13): def __init__( self, locals: dict[str, Any] | None = None, filename: str = "", *, local_exit: bool = False From c19014692041ab4662dcbf6144333f2ca8d18309 Mon Sep 17 00:00:00 2001 From: Jonathan Dung Date: Mon, 16 Mar 2026 13:15:27 +0800 Subject: [PATCH 3/4] Move local_exit annotation under version > 3.13 --- stdlib/code.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/code.pyi b/stdlib/code.pyi index c48f61312c98..375192e396db 100644 --- a/stdlib/code.pyi +++ b/stdlib/code.pyi @@ -23,8 +23,8 @@ class InteractiveInterpreter: class InteractiveConsole(InteractiveInterpreter): buffer: list[str] # undocumented filename: str # undocumented - local_exit: bool # undocumented if sys.version_info >= (3, 13): + local_exit: bool # undocumented def __init__( self, locals: dict[str, Any] | None = None, filename: str = "", *, local_exit: bool = False ) -> None: ... From 54b7396edb623a2942dcdcd2fe4fa5a212cbfaee Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Mar 2026 05:17:32 +0000 Subject: [PATCH 4/4] [pre-commit.ci] auto fixes from pre-commit.com hooks --- stdlib/code.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/code.pyi b/stdlib/code.pyi index 375192e396db..478d5aaa320f 100644 --- a/stdlib/code.pyi +++ b/stdlib/code.pyi @@ -24,7 +24,7 @@ class InteractiveConsole(InteractiveInterpreter): buffer: list[str] # undocumented filename: str # undocumented if sys.version_info >= (3, 13): - local_exit: bool # undocumented + local_exit: bool # undocumented def __init__( self, locals: dict[str, Any] | None = None, filename: str = "", *, local_exit: bool = False ) -> None: ...