mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 00:53:23 +08:00
Use explicit "# type: str" instead of '' shortcut.
This commit is contained in:
@@ -46,15 +46,15 @@ O_DIRECTORY = 0 # Gnu extension if in C library
|
||||
O_NOFOLLOW = 0 # Gnu extension if in C library
|
||||
O_NOATIME = 0 # Gnu extension if in C library
|
||||
|
||||
curdir = ''
|
||||
pardir = ''
|
||||
sep = ''
|
||||
altsep = ''
|
||||
extsep = ''
|
||||
pathsep = ''
|
||||
defpath = ''
|
||||
linesep = ''
|
||||
devnull = ''
|
||||
curdir = ... # type: str
|
||||
pardir = ... # type: str
|
||||
sep = ... # type: str
|
||||
altsep = ... # type: str
|
||||
extsep = ... # type: str
|
||||
pathsep = ... # type: str
|
||||
defpath = ... # type: str
|
||||
linesep = ... # type: str
|
||||
devnull = ... # type: str
|
||||
|
||||
F_OK = 0
|
||||
R_OK = 0
|
||||
|
||||
@@ -8,14 +8,14 @@ from typing import overload, List, Any, AnyStr, Tuple, BinaryIO, TextIO
|
||||
# ----- os.path variables -----
|
||||
supports_unicode_filenames = False
|
||||
# aliases (also in os)
|
||||
curdir = ''
|
||||
pardir = ''
|
||||
sep = ''
|
||||
altsep = ''
|
||||
extsep = ''
|
||||
pathsep = ''
|
||||
defpath = ''
|
||||
devnull = ''
|
||||
curdir = ... # type: str
|
||||
pardir = ... # type: str
|
||||
sep = ... # type: str
|
||||
altsep = ... # type: str
|
||||
extsep = ... # type: str
|
||||
pathsep = ... # type: str
|
||||
defpath = ... # type: str
|
||||
devnull = ... # type: str
|
||||
|
||||
# ----- os.path function stubs -----
|
||||
def abspath(path: AnyStr) -> AnyStr: ...
|
||||
|
||||
Reference in New Issue
Block a user