stdlib: Run stubdefaulter on Linux for 3.9 (#9663)

This commit is contained in:
Jelle Zijlstra
2023-02-02 16:39:22 -08:00
committed by GitHub
parent 100cd62373
commit 5b24c7bb41
8 changed files with 39 additions and 36 deletions

View File

@@ -791,16 +791,16 @@ if sys.platform != "win32":
dir_fd: int | None = None,
) -> Iterator[tuple[bytes, list[bytes], list[bytes], int]]: ...
if sys.platform == "linux":
def getxattr(path: FileDescriptorOrPath, attribute: StrOrBytesPath, *, follow_symlinks: bool = ...) -> bytes: ...
def listxattr(path: FileDescriptorOrPath | None = ..., *, follow_symlinks: bool = ...) -> list[str]: ...
def removexattr(path: FileDescriptorOrPath, attribute: StrOrBytesPath, *, follow_symlinks: bool = ...) -> None: ...
def getxattr(path: FileDescriptorOrPath, attribute: StrOrBytesPath, *, follow_symlinks: bool = True) -> bytes: ...
def listxattr(path: FileDescriptorOrPath | None = None, *, follow_symlinks: bool = True) -> list[str]: ...
def removexattr(path: FileDescriptorOrPath, attribute: StrOrBytesPath, *, follow_symlinks: bool = True) -> None: ...
def setxattr(
path: FileDescriptorOrPath,
attribute: StrOrBytesPath,
value: ReadableBuffer,
flags: int = ...,
flags: int = 0,
*,
follow_symlinks: bool = ...,
follow_symlinks: bool = True,
) -> None: ...
def abort() -> NoReturn: ...
@@ -983,7 +983,7 @@ if sys.platform != "win32":
def sysconf(__name: str | int) -> int: ...
if sys.platform == "linux":
def getrandom(size: int, flags: int = ...) -> bytes: ...
def getrandom(size: int, flags: int = 0) -> bytes: ...
def urandom(__size: int) -> bytes: ...