mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Simplify __all__ for modules beginning with 'm' to 't' (#8028)
This commit is contained in:
@@ -45,89 +45,49 @@ from posixpath import (
|
||||
from typing import AnyStr, overload
|
||||
from typing_extensions import LiteralString
|
||||
|
||||
if sys.version_info >= (3, 7) or sys.platform != "win32":
|
||||
__all__ = [
|
||||
"normcase",
|
||||
"isabs",
|
||||
"join",
|
||||
"splitdrive",
|
||||
"split",
|
||||
"splitext",
|
||||
"basename",
|
||||
"dirname",
|
||||
"commonprefix",
|
||||
"getsize",
|
||||
"getmtime",
|
||||
"getatime",
|
||||
"getctime",
|
||||
"islink",
|
||||
"exists",
|
||||
"lexists",
|
||||
"isdir",
|
||||
"isfile",
|
||||
"ismount",
|
||||
"expanduser",
|
||||
"expandvars",
|
||||
"normpath",
|
||||
"abspath",
|
||||
"curdir",
|
||||
"pardir",
|
||||
"sep",
|
||||
"pathsep",
|
||||
"defpath",
|
||||
"altsep",
|
||||
"extsep",
|
||||
"devnull",
|
||||
"realpath",
|
||||
"supports_unicode_filenames",
|
||||
"relpath",
|
||||
"samefile",
|
||||
"sameopenfile",
|
||||
"samestat",
|
||||
"commonpath",
|
||||
]
|
||||
else:
|
||||
__all__ = [
|
||||
"normcase",
|
||||
"isabs",
|
||||
"join",
|
||||
"splitdrive",
|
||||
"split",
|
||||
"splitext",
|
||||
"basename",
|
||||
"dirname",
|
||||
"commonprefix",
|
||||
"getsize",
|
||||
"getmtime",
|
||||
"getatime",
|
||||
"getctime",
|
||||
"islink",
|
||||
"exists",
|
||||
"lexists",
|
||||
"isdir",
|
||||
"isfile",
|
||||
"ismount",
|
||||
"expanduser",
|
||||
"expandvars",
|
||||
"normpath",
|
||||
"abspath",
|
||||
"splitunc",
|
||||
"curdir",
|
||||
"pardir",
|
||||
"sep",
|
||||
"pathsep",
|
||||
"defpath",
|
||||
"altsep",
|
||||
"extsep",
|
||||
"devnull",
|
||||
"realpath",
|
||||
"supports_unicode_filenames",
|
||||
"relpath",
|
||||
"samefile",
|
||||
"sameopenfile",
|
||||
"samestat",
|
||||
"commonpath",
|
||||
]
|
||||
__all__ = [
|
||||
"normcase",
|
||||
"isabs",
|
||||
"join",
|
||||
"splitdrive",
|
||||
"split",
|
||||
"splitext",
|
||||
"basename",
|
||||
"dirname",
|
||||
"commonprefix",
|
||||
"getsize",
|
||||
"getmtime",
|
||||
"getatime",
|
||||
"getctime",
|
||||
"islink",
|
||||
"exists",
|
||||
"lexists",
|
||||
"isdir",
|
||||
"isfile",
|
||||
"ismount",
|
||||
"expanduser",
|
||||
"expandvars",
|
||||
"normpath",
|
||||
"abspath",
|
||||
"curdir",
|
||||
"pardir",
|
||||
"sep",
|
||||
"pathsep",
|
||||
"defpath",
|
||||
"altsep",
|
||||
"extsep",
|
||||
"devnull",
|
||||
"realpath",
|
||||
"supports_unicode_filenames",
|
||||
"relpath",
|
||||
"samefile",
|
||||
"sameopenfile",
|
||||
"samestat",
|
||||
"commonpath",
|
||||
]
|
||||
|
||||
if sys.version_info < (3, 7) and sys.platform == "win32":
|
||||
__all__ += ["splitunc"]
|
||||
|
||||
def splitunc(p: AnyStr) -> tuple[AnyStr, AnyStr]: ... # deprecated
|
||||
|
||||
|
||||
Reference in New Issue
Block a user