mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fix stubtest errors on macOS / Python 3.11 (#8743)
This commit is contained in:
@@ -309,17 +309,10 @@ if sys.platform != "win32":
|
||||
copy_file_range as copy_file_range,
|
||||
memfd_create as memfd_create,
|
||||
)
|
||||
from os import register_at_fork as register_at_fork
|
||||
from os import preadv as preadv, pwritev as pwritev, register_at_fork as register_at_fork
|
||||
|
||||
if sys.platform != "darwin":
|
||||
from os import (
|
||||
RWF_DSYNC as RWF_DSYNC,
|
||||
RWF_HIPRI as RWF_HIPRI,
|
||||
RWF_NOWAIT as RWF_NOWAIT,
|
||||
RWF_SYNC as RWF_SYNC,
|
||||
preadv as preadv,
|
||||
pwritev as pwritev,
|
||||
)
|
||||
from os import RWF_DSYNC as RWF_DSYNC, RWF_HIPRI as RWF_HIPRI, RWF_NOWAIT as RWF_NOWAIT, RWF_SYNC as RWF_SYNC
|
||||
|
||||
# Not same as os.environ or os.environb
|
||||
# Because of this variable, we can't do "from posix import *" in os/__init__.pyi
|
||||
|
||||
Reference in New Issue
Block a user