Add __all__ for most modules beginning with 't' (#7373)

This commit is contained in:
Alex Waygood
2022-02-24 02:25:28 +00:00
committed by GitHub
parent 062fc75d73
commit 6a743348ca
22 changed files with 1192 additions and 0 deletions

View File

@@ -4,6 +4,28 @@ from types import FrameType, TracebackType
from typing import IO, Any, Generator, Iterable, Iterator, Mapping, Optional, overload
from typing_extensions import Literal
__all__ = [
"extract_stack",
"extract_tb",
"format_exception",
"format_exception_only",
"format_list",
"format_stack",
"format_tb",
"print_exc",
"format_exc",
"print_exception",
"print_last",
"print_stack",
"print_tb",
"clear_frames",
"FrameSummary",
"StackSummary",
"TracebackException",
"walk_stack",
"walk_tb",
]
_PT = tuple[str, int, str, Optional[str]]
def print_tb(tb: TracebackType | None, limit: int | None = ..., file: IO[str] | None = ...) -> None: ...