mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-16 11:34:56 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -3,25 +3,25 @@ from typing import IO, List, Optional, Tuple, Type
|
||||
|
||||
_PT = Tuple[str, int, str, Optional[str]]
|
||||
|
||||
def print_tb(tb: Optional[TracebackType], limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...
|
||||
def print_tb(tb: TracebackType | None, limit: int | None = ..., file: IO[str] | None = ...) -> None: ...
|
||||
def print_exception(
|
||||
etype: Optional[Type[BaseException]],
|
||||
value: Optional[BaseException],
|
||||
tb: Optional[TracebackType],
|
||||
limit: Optional[int] = ...,
|
||||
file: Optional[IO[str]] = ...,
|
||||
etype: Type[BaseException] | None,
|
||||
value: BaseException | None,
|
||||
tb: TracebackType | None,
|
||||
limit: int | None = ...,
|
||||
file: IO[str] | None = ...,
|
||||
) -> None: ...
|
||||
def print_exc(limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...
|
||||
def print_last(limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...
|
||||
def print_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ..., file: Optional[IO[str]] = ...) -> None: ...
|
||||
def extract_tb(tb: Optional[TracebackType], limit: Optional[int] = ...) -> List[_PT]: ...
|
||||
def extract_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ...) -> List[_PT]: ...
|
||||
def print_exc(limit: int | None = ..., file: IO[str] | None = ...) -> None: ...
|
||||
def print_last(limit: int | None = ..., file: IO[str] | None = ...) -> None: ...
|
||||
def print_stack(f: FrameType | None = ..., limit: int | None = ..., file: IO[str] | None = ...) -> None: ...
|
||||
def extract_tb(tb: TracebackType | None, limit: int | None = ...) -> List[_PT]: ...
|
||||
def extract_stack(f: FrameType | None = ..., limit: int | None = ...) -> List[_PT]: ...
|
||||
def format_list(extracted_list: List[_PT]) -> List[str]: ...
|
||||
def format_exception_only(etype: Optional[Type[BaseException]], value: Optional[BaseException]) -> List[str]: ...
|
||||
def format_exception_only(etype: Type[BaseException] | None, value: BaseException | None) -> List[str]: ...
|
||||
def format_exception(
|
||||
etype: Optional[Type[BaseException]], value: Optional[BaseException], tb: Optional[TracebackType], limit: Optional[int] = ...
|
||||
etype: Type[BaseException] | None, value: BaseException | None, tb: TracebackType | None, limit: int | None = ...
|
||||
) -> List[str]: ...
|
||||
def format_exc(limit: Optional[int] = ...) -> str: ...
|
||||
def format_tb(tb: Optional[TracebackType], limit: Optional[int] = ...) -> List[str]: ...
|
||||
def format_stack(f: Optional[FrameType] = ..., limit: Optional[int] = ...) -> List[str]: ...
|
||||
def format_exc(limit: int | None = ...) -> str: ...
|
||||
def format_tb(tb: TracebackType | None, limit: int | None = ...) -> List[str]: ...
|
||||
def format_stack(f: FrameType | None = ..., limit: int | None = ...) -> List[str]: ...
|
||||
def tb_lineno(tb: TracebackType) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user