mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-11 19:00:52 +08:00
Update most test/lint dependencies (#15582)
This commit is contained in:
@@ -111,7 +111,7 @@ def walk_tb(tb: TracebackType | None) -> Iterator[tuple[FrameType, int]]: ...
|
||||
if sys.version_info >= (3, 11):
|
||||
class _ExceptionPrintContext:
|
||||
def indent(self) -> str: ...
|
||||
def emit(self, text_gen: str | Iterable[str], margin_char: str | None = None) -> Generator[str, None, None]: ...
|
||||
def emit(self, text_gen: str | Iterable[str], margin_char: str | None = None) -> Generator[str]: ...
|
||||
|
||||
class TracebackException:
|
||||
__cause__: TracebackException | None
|
||||
@@ -232,14 +232,14 @@ class TracebackException:
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
if sys.version_info >= (3, 11):
|
||||
def format(self, *, chain: bool = True, _ctx: _ExceptionPrintContext | None = None) -> Generator[str, None, None]: ...
|
||||
def format(self, *, chain: bool = True, _ctx: _ExceptionPrintContext | None = None) -> Generator[str]: ...
|
||||
else:
|
||||
def format(self, *, chain: bool = True) -> Generator[str, None, None]: ...
|
||||
def format(self, *, chain: bool = True) -> Generator[str]: ...
|
||||
|
||||
if sys.version_info >= (3, 13):
|
||||
def format_exception_only(self, *, show_group: bool = False, _depth: int = 0) -> Generator[str, None, None]: ...
|
||||
def format_exception_only(self, *, show_group: bool = False, _depth: int = 0) -> Generator[str]: ...
|
||||
else:
|
||||
def format_exception_only(self) -> Generator[str, None, None]: ...
|
||||
def format_exception_only(self) -> Generator[str]: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
def print(self, *, file: SupportsWrite[str] | None = None, chain: bool = True) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user