mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
os: Params for posix_fallocate and posix_fadvise are pos-only (#8283)
90a6e56e56/Modules/posixmodule.c (L10845)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user