mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add __all__ for modules beginning with 'e', 'f' and 'g' (#7325)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user