mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime (#9791)
This commit is contained in:
@@ -132,12 +132,12 @@ class TracebackException:
|
||||
cls,
|
||||
exc: BaseException,
|
||||
*,
|
||||
limit: int | None = ...,
|
||||
lookup_lines: bool = ...,
|
||||
capture_locals: bool = ...,
|
||||
compact: bool = ...,
|
||||
max_group_width: int = ...,
|
||||
max_group_depth: int = ...,
|
||||
limit: int | None = None,
|
||||
lookup_lines: bool = True,
|
||||
capture_locals: bool = False,
|
||||
compact: bool = False,
|
||||
max_group_width: int = 15,
|
||||
max_group_depth: int = 10,
|
||||
) -> Self: ...
|
||||
elif sys.version_info >= (3, 10):
|
||||
def __init__(
|
||||
@@ -157,10 +157,10 @@ class TracebackException:
|
||||
cls,
|
||||
exc: BaseException,
|
||||
*,
|
||||
limit: int | None = ...,
|
||||
lookup_lines: bool = ...,
|
||||
capture_locals: bool = ...,
|
||||
compact: bool = ...,
|
||||
limit: int | None = None,
|
||||
lookup_lines: bool = True,
|
||||
capture_locals: bool = False,
|
||||
compact: bool = False,
|
||||
) -> Self: ...
|
||||
else:
|
||||
def __init__(
|
||||
@@ -176,7 +176,7 @@ class TracebackException:
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
def from_exception(
|
||||
cls, exc: BaseException, *, limit: int | None = ..., lookup_lines: bool = ..., capture_locals: bool = ...
|
||||
cls, exc: BaseException, *, limit: int | None = None, lookup_lines: bool = True, capture_locals: bool = False
|
||||
) -> Self: ...
|
||||
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user