mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-23 12:21:27 +08:00
Mark some errnos as darwin- or solaris-only (#10440)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -91,9 +91,15 @@ ECANCELED: int # undocumented
|
||||
ENOTRECOVERABLE: int # undocumented
|
||||
EOWNERDEAD: int # undocumented
|
||||
|
||||
if sys.platform == "sunos5" or sys.platform == "solaris": # noqa: Y008
|
||||
ELOCKUNMAPPED: int
|
||||
ENOTACTIVE: int
|
||||
|
||||
if sys.platform != "win32":
|
||||
ENOTBLK: int
|
||||
EMULTIHOP: int
|
||||
|
||||
if sys.platform == "darwin":
|
||||
# All of the below are undocumented
|
||||
EAUTH: int
|
||||
EBADARCH: int
|
||||
@@ -112,9 +118,8 @@ if sys.platform != "win32":
|
||||
EPWROFF: int
|
||||
ERPCMISMATCH: int
|
||||
ESHLIBVERS: int
|
||||
|
||||
if sys.platform != "darwin" or sys.version_info >= (3, 11):
|
||||
EQFULL: int # undocumented
|
||||
if sys.version_info >= (3, 11):
|
||||
EQFULL: int
|
||||
|
||||
if sys.platform != "darwin":
|
||||
EDEADLOCK: int
|
||||
@@ -164,9 +169,6 @@ if sys.platform != "win32" and sys.platform != "darwin":
|
||||
ENOKEY: int
|
||||
ENOMEDIUM: int
|
||||
ERFKILL: int
|
||||
EL: int
|
||||
ELOCKUNMAPPED: int
|
||||
ENOTACTIVE: int
|
||||
|
||||
if sys.platform == "win32":
|
||||
# All of these are undocumented
|
||||
|
||||
Reference in New Issue
Block a user