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

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-02-23 18:25:28 -08:00
1 parent 062fc75d73
commit 6a743348ca
22 files changed
+1192

No files matched your search

+22
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: ...