Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime (#9791)

This commit is contained in:
Alex Waygood
2023-02-22 07:31:25 +00:00
committed by GitHub
parent 6ac15185fb
commit fbc092b4cd
7 changed files with 1394 additions and 1370 deletions

View File

@@ -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: ...