Remove Python 3.6 branches from typeshed (#8269)

This commit is contained in:
Alex Waygood
2022-07-11 09:55:17 +01:00
committed by GitHub
parent 29c17ffb47
commit edc0ecd857
114 changed files with 1016 additions and 2642 deletions

View File

@@ -309,18 +309,17 @@ if sys.platform != "win32":
copy_file_range as copy_file_range,
memfd_create as memfd_create,
)
if sys.version_info >= (3, 7):
from os import register_at_fork as register_at_fork
from os import 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,
)
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,
)
# Not same as os.environ or os.environb
# Because of this variable, we can't do "from posix import *" in os/__init__.pyi