mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Make os.altsep Optional on non-win32 platforms (#2918)
Keep it str on win32 to avoid breaking win32-specific code that relies on it.
This commit is contained in:
committed by
Jelle Zijlstra
parent
bd10d8aad4
commit
f06f2e97bb
@@ -63,7 +63,10 @@ O_LARGEFILE: int # Gnu extension if in C library
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
@@ -27,7 +27,10 @@ supports_unicode_filenames: bool
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
@@ -27,7 +27,10 @@ supports_unicode_filenames: bool
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
@@ -27,7 +27,10 @@ supports_unicode_filenames: bool
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
@@ -27,7 +27,10 @@ supports_unicode_filenames: bool
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
@@ -27,7 +27,10 @@ supports_unicode_filenames: bool
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
@@ -128,7 +128,10 @@ O_LARGEFILE: int # Gnu extension if in C library
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
@@ -27,7 +27,10 @@ supports_unicode_filenames: bool
|
||||
curdir: str
|
||||
pardir: str
|
||||
sep: str
|
||||
altsep: str
|
||||
if sys.platform == 'win32':
|
||||
altsep: str
|
||||
else:
|
||||
altsep: Optional[str]
|
||||
extsep: str
|
||||
pathsep: str
|
||||
defpath: str
|
||||
|
||||
Reference in New Issue
Block a user