os: Params for posix_fallocate and posix_fadvise are pos-only (#8283)

90a6e56e56/Modules/posixmodule.c (L10845)
This commit is contained in:
Jelle Zijlstra
2022-07-12 12:19:41 -07:00
committed by GitHub
parent a0f6fb5669
commit 2a1b33df9f
3 changed files with 2 additions and 6 deletions

View File

@@ -616,8 +616,8 @@ if sys.platform != "win32":
if sys.platform != "darwin":
def fdatasync(fd: FileDescriptorLike) -> None: ...
def pipe2(__flags: int) -> tuple[int, int]: ... # some flavors of Unix
def posix_fallocate(fd: int, offset: int, length: int) -> None: ...
def posix_fadvise(fd: int, offset: int, length: int, advice: int) -> None: ...
def posix_fallocate(__fd: int, __offset: int, __length: int) -> None: ...
def posix_fadvise(__fd: int, __offset: int, __length: int, __advice: int) -> None: ...
def pread(__fd: int, __length: int, __offset: int) -> bytes: ...
def pwrite(__fd: int, __buffer: bytes, __offset: int) -> int: ...