mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-28 06:36:54 +08:00
Use sys.platform instead of comments (#2286)
This commit is contained in:
committed by
Jelle Zijlstra
parent
6192cce9d9
commit
1ae2ba0fbe
@@ -136,7 +136,9 @@ def exit(arg: object = ...) -> NoReturn:
|
||||
raise SystemExit()
|
||||
def getcheckinterval() -> int: ... # deprecated
|
||||
def getdefaultencoding() -> str: ...
|
||||
def getdlopenflags() -> int: ... # Unix only
|
||||
if sys.platform != 'win32':
|
||||
# Unix only
|
||||
def getdlopenflags() -> int: ...
|
||||
def getfilesystemencoding() -> str: ...
|
||||
def getrefcount(arg: Any) -> int: ...
|
||||
def getrecursionlimit() -> int: ...
|
||||
@@ -178,6 +180,7 @@ class _WinVersion(Tuple[int, int, int, int,
|
||||
|
||||
|
||||
def getwindowsversion() -> _WinVersion: ... # Windows only
|
||||
|
||||
def intern(string: str) -> str: ...
|
||||
|
||||
if sys.version_info >= (3, 5):
|
||||
|
||||
Reference in New Issue
Block a user