mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -361,9 +361,8 @@ class stat_result(structseq[float], tuple[int, int, int, int, int, int, int, flo
|
||||
if sys.platform == "win32":
|
||||
@property
|
||||
def st_file_attributes(self) -> int: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
@property
|
||||
def st_reparse_tag(self) -> int: ...
|
||||
@property
|
||||
def st_reparse_tag(self) -> int: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
@property
|
||||
def st_birthtime(self) -> float: ... # time of file creation in seconds
|
||||
@@ -975,36 +974,35 @@ else:
|
||||
def WEXITSTATUS(status: int) -> int: ...
|
||||
def WSTOPSIG(status: int) -> int: ...
|
||||
def WTERMSIG(status: int) -> int: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def posix_spawn(
|
||||
__path: StrOrBytesPath,
|
||||
__argv: _ExecVArgs,
|
||||
__env: _ExecEnv,
|
||||
*,
|
||||
file_actions: Sequence[tuple[Any, ...]] | None = ...,
|
||||
setpgroup: int | None = ...,
|
||||
resetids: bool = ...,
|
||||
setsid: bool = ...,
|
||||
setsigmask: Iterable[int] = ...,
|
||||
setsigdef: Iterable[int] = ...,
|
||||
scheduler: tuple[Any, sched_param] | None = ...,
|
||||
) -> int: ...
|
||||
def posix_spawnp(
|
||||
__path: StrOrBytesPath,
|
||||
__argv: _ExecVArgs,
|
||||
__env: _ExecEnv,
|
||||
*,
|
||||
file_actions: Sequence[tuple[Any, ...]] | None = ...,
|
||||
setpgroup: int | None = ...,
|
||||
resetids: bool = ...,
|
||||
setsid: bool = ...,
|
||||
setsigmask: Iterable[int] = ...,
|
||||
setsigdef: Iterable[int] = ...,
|
||||
scheduler: tuple[Any, sched_param] | None = ...,
|
||||
) -> int: ...
|
||||
POSIX_SPAWN_OPEN: int
|
||||
POSIX_SPAWN_CLOSE: int
|
||||
POSIX_SPAWN_DUP2: int
|
||||
def posix_spawn(
|
||||
__path: StrOrBytesPath,
|
||||
__argv: _ExecVArgs,
|
||||
__env: _ExecEnv,
|
||||
*,
|
||||
file_actions: Sequence[tuple[Any, ...]] | None = ...,
|
||||
setpgroup: int | None = ...,
|
||||
resetids: bool = ...,
|
||||
setsid: bool = ...,
|
||||
setsigmask: Iterable[int] = ...,
|
||||
setsigdef: Iterable[int] = ...,
|
||||
scheduler: tuple[Any, sched_param] | None = ...,
|
||||
) -> int: ...
|
||||
def posix_spawnp(
|
||||
__path: StrOrBytesPath,
|
||||
__argv: _ExecVArgs,
|
||||
__env: _ExecEnv,
|
||||
*,
|
||||
file_actions: Sequence[tuple[Any, ...]] | None = ...,
|
||||
setpgroup: int | None = ...,
|
||||
resetids: bool = ...,
|
||||
setsid: bool = ...,
|
||||
setsigmask: Iterable[int] = ...,
|
||||
setsigdef: Iterable[int] = ...,
|
||||
scheduler: tuple[Any, sched_param] | None = ...,
|
||||
) -> int: ...
|
||||
POSIX_SPAWN_OPEN: int
|
||||
POSIX_SPAWN_CLOSE: int
|
||||
POSIX_SPAWN_DUP2: int
|
||||
|
||||
if sys.platform != "win32":
|
||||
@final
|
||||
@@ -1048,38 +1046,36 @@ if sys.platform != "win32":
|
||||
after_in_child: Callable[..., Any] | None = ...,
|
||||
) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
if sys.platform == "win32":
|
||||
class _AddedDllDirectory:
|
||||
path: str | None
|
||||
def __init__(self, path: str | None, cookie: _T, remove_dll_directory: Callable[[_T], object]) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, *args: Unused) -> None: ...
|
||||
if sys.platform == "win32":
|
||||
class _AddedDllDirectory:
|
||||
path: str | None
|
||||
def __init__(self, path: str | None, cookie: _T, remove_dll_directory: Callable[[_T], object]) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def __enter__(self) -> Self: ...
|
||||
def __exit__(self, *args: Unused) -> None: ...
|
||||
|
||||
def add_dll_directory(path: str) -> _AddedDllDirectory: ...
|
||||
if sys.platform == "linux":
|
||||
MFD_CLOEXEC: int
|
||||
MFD_ALLOW_SEALING: int
|
||||
MFD_HUGETLB: int
|
||||
MFD_HUGE_SHIFT: int
|
||||
MFD_HUGE_MASK: int
|
||||
MFD_HUGE_64KB: int
|
||||
MFD_HUGE_512KB: int
|
||||
MFD_HUGE_1MB: int
|
||||
MFD_HUGE_2MB: int
|
||||
MFD_HUGE_8MB: int
|
||||
MFD_HUGE_16MB: int
|
||||
MFD_HUGE_32MB: int
|
||||
MFD_HUGE_256MB: int
|
||||
MFD_HUGE_512MB: int
|
||||
MFD_HUGE_1GB: int
|
||||
MFD_HUGE_2GB: int
|
||||
MFD_HUGE_16GB: int
|
||||
def memfd_create(name: str, flags: int = ...) -> int: ...
|
||||
def copy_file_range(
|
||||
src: int, dst: int, count: int, offset_src: int | None = ..., offset_dst: int | None = ...
|
||||
) -> int: ...
|
||||
def add_dll_directory(path: str) -> _AddedDllDirectory: ...
|
||||
|
||||
if sys.platform == "linux":
|
||||
MFD_CLOEXEC: int
|
||||
MFD_ALLOW_SEALING: int
|
||||
MFD_HUGETLB: int
|
||||
MFD_HUGE_SHIFT: int
|
||||
MFD_HUGE_MASK: int
|
||||
MFD_HUGE_64KB: int
|
||||
MFD_HUGE_512KB: int
|
||||
MFD_HUGE_1MB: int
|
||||
MFD_HUGE_2MB: int
|
||||
MFD_HUGE_8MB: int
|
||||
MFD_HUGE_16MB: int
|
||||
MFD_HUGE_32MB: int
|
||||
MFD_HUGE_256MB: int
|
||||
MFD_HUGE_512MB: int
|
||||
MFD_HUGE_1GB: int
|
||||
MFD_HUGE_2GB: int
|
||||
MFD_HUGE_16GB: int
|
||||
def memfd_create(name: str, flags: int = ...) -> int: ...
|
||||
def copy_file_range(src: int, dst: int, count: int, offset_src: int | None = ..., offset_dst: int | None = ...) -> int: ...
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
def waitstatus_to_exitcode(status: int) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user