Add missing defaults to third-party stubs (#14617)

This commit is contained in:
Jelle Zijlstra
2025-08-21 13:36:29 -07:00
committed by GitHub
parent 82926783a4
commit 573b57d8da
54 changed files with 383 additions and 376 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class Watch:
self,
*,
callback: Callable[[FrameType, WatchElement, tuple[str, str, int | None]], None] = ...,
pdb: Literal[True] = ...,
pdb: Literal[True] = True,
file: str | SupportsWrite[str] = ...,
stack_limit: int | None = 5,
custom_printer: Callable[[Any], None] = ..., # User-defined printing callback
@@ -16,8 +16,8 @@ class WatchPrint:
def __init__(
self,
file: str | SupportsWrite[str] | None = ...,
stack_limit: int | None = ...,
custom_printer: Callable[[Any], None] | None = ..., # User-defined printing callback
stack_limit: int | None = None,
custom_printer: Callable[[Any], None] | None = None, # User-defined printing callback
) -> None: ...
def __call__(self, frame: FrameType, elem: WatchElement, exec_info: tuple[str, str, int | None]) -> None: ...
def getsourceline(self, exec_info: tuple[str, str, int | None]) -> str: ...