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