From 95b268999c8c76cc835a83da5420d9113cdf4d73 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Tue, 18 Jul 2023 19:33:27 +0300 Subject: [PATCH] `pdb`: py312 updates (#10471) --- stdlib/pdb.pyi | 3 +++ tests/stubtest_allowlists/py312.txt | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stdlib/pdb.pyi b/stdlib/pdb.pyi index e0d69e7d3..4cc708d9d 100644 --- a/stdlib/pdb.pyi +++ b/stdlib/pdb.pyi @@ -125,6 +125,9 @@ class Pdb(Bdb, Cmd): def sigint_handler(self, signum: signal.Signals, frame: FrameType) -> None: ... def message(self, msg: str) -> None: ... def error(self, msg: str) -> None: ... + if sys.version_info >= (3, 12): + def set_convenience_variable(self, frame: FrameType, name: str, value: Any) -> None: ... + def _select_frame(self, number: int) -> None: ... def _getval_except(self, arg: str, frame: FrameType | None = None) -> object: ... def _print_lines( diff --git a/tests/stubtest_allowlists/py312.txt b/tests/stubtest_allowlists/py312.txt index 01175639a..b7d462962 100644 --- a/tests/stubtest_allowlists/py312.txt +++ b/tests/stubtest_allowlists/py312.txt @@ -67,7 +67,6 @@ pathlib.Path.__init__ pathlib.PurePath.__init__ pathlib.PurePath.is_relative_to pathlib.PurePath.relative_to -pdb.Pdb.set_convenience_variable poplib.POP3_SSL.__init__ posixpath.__all__ posixpath.isjunction