fcntl: fix fcntl arg type (s#) (#9052)

This commit is contained in:
Jelle Zijlstra
2022-11-01 04:34:04 -07:00
committed by GitHub
parent 4d40fc6c8a
commit 62ddebb65c

View File

@@ -103,7 +103,7 @@ if sys.platform != "win32":
@overload
def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: int = ...) -> int: ...
@overload
def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: bytes) -> bytes: ...
def fcntl(__fd: FileDescriptorLike, __cmd: int, __arg: str | ReadOnlyBuffer) -> bytes: ...
@overload
def ioctl(__fd: FileDescriptorLike, __request: int, __arg: int = ..., __mutate_flag: bool = ...) -> int: ...
@overload