mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-08-03 06:28:28 +08:00
Add missing defaults to third-party stubs (#14617)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user