Add some defaults and __slots__ for 3.14 (#14622)

This commit is contained in:
Jelle Zijlstra
2025-08-22 09:51:00 -07:00
committed by GitHub
parent 94b1880444
commit b6e21d05ae
7 changed files with 26 additions and 4 deletions
+5 -1
View File
@@ -131,7 +131,11 @@ class Pdb(Bdb, Cmd):
def completedefault(self, text: str, line: str, begidx: int, endidx: int) -> list[str]: ...
def do_commands(self, arg: str) -> bool | None: ...
def do_break(self, arg: str, temporary: bool = ...) -> bool | None: ...
if sys.version_info >= (3, 14):
def do_break(self, arg: str, temporary: bool = False) -> bool | None: ...
else:
def do_break(self, arg: str, temporary: bool | Literal[0, 1] = 0) -> bool | None: ...
def do_tbreak(self, arg: str) -> bool | None: ...
def do_enable(self, arg: str) -> bool | None: ...
def do_disable(self, arg: str) -> bool | None: ...