Add __all__ for modules beginning with 'e', 'f' and 'g' (#7325)

This commit is contained in:
Alex Waygood
2022-02-20 23:08:14 +00:00
committed by GitHub
parent 3ead05f277
commit 2fe519c3a7
13 changed files with 192 additions and 1 deletions

View File

@@ -3,6 +3,20 @@ from _typeshed import BytesPath, StrOrBytesPath, StrPath, SupportsRichComparison
from typing import Sequence, overload
from typing_extensions import Literal
__all__ = [
"commonprefix",
"exists",
"getatime",
"getctime",
"getmtime",
"getsize",
"isdir",
"isfile",
"samefile",
"sameopenfile",
"samestat",
]
# All overloads can return empty string. Ideally, Literal[""] would be a valid
# Iterable[T], so that list[T] | Literal[""] could be used as a return
# type. But because this only works when T is str, we need Sequence[T] instead.