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

@@ -8,6 +8,22 @@ from typing_extensions import Literal
if sys.version_info >= (3, 9):
from types import GenericAlias
__all__ = [
"NamedTemporaryFile",
"TemporaryFile",
"SpooledTemporaryFile",
"TemporaryDirectory",
"mkstemp",
"mkdtemp",
"mktemp",
"TMP_MAX",
"gettempprefix",
"tempdir",
"gettempdir",
"gettempprefixb",
"gettempdirb",
]
# global variables
TMP_MAX: int
tempdir: str | None