From 8968eb4fc92a25590bde3ed7070f31d8b906bce8 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Mon, 23 May 2022 00:20:48 -0700 Subject: [PATCH] bdb: update for py311 (#7927) --- stdlib/bdb.pyi | 5 +++++ tests/stubtest_allowlists/py311.txt | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stdlib/bdb.pyi b/stdlib/bdb.pyi index bbd0f20af..f4d1875ef 100644 --- a/stdlib/bdb.pyi +++ b/stdlib/bdb.pyi @@ -1,3 +1,4 @@ +import sys from _typeshed import ExcInfo from collections.abc import Callable, Iterable, Mapping from types import CodeType, FrameType, TracebackType @@ -86,6 +87,10 @@ class Breakpoint: def __init__( self, file: str, line: int, temporary: bool = ..., cond: str | None = ..., funcname: str | None = ... ) -> None: ... + if sys.version_info >= (3, 11): + @staticmethod + def clearBreakpoints() -> None: ... + def deleteMe(self) -> None: ... def enable(self) -> None: ... def disable(self) -> None: ... diff --git a/tests/stubtest_allowlists/py311.txt b/tests/stubtest_allowlists/py311.txt index c4c961432..7b99da0c0 100644 --- a/tests/stubtest_allowlists/py311.txt +++ b/tests/stubtest_allowlists/py311.txt @@ -30,7 +30,6 @@ asyncio.sslproto._SSLProtocolTransport.get_read_buffer_limits asyncio.sslproto._SSLProtocolTransport.get_read_buffer_size asyncio.sslproto._SSLProtocolTransport.set_read_buffer_limits asyncio.sslproto.add_flowcontrol_defaults -bdb.Breakpoint.clearBreakpoints builtins.dict.get configparser.LegacyInterpolation.__init__ contextvars.Context.__init__