From 62ddebb65c0fcb682cce8539c4e354617701dd0e Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 1 Nov 2022 04:34:04 -0700 Subject: [PATCH] fcntl: fix fcntl arg type (s#) (#9052) --- stdlib/fcntl.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/fcntl.pyi b/stdlib/fcntl.pyi index 69863bf58..2df16083c 100644 --- a/stdlib/fcntl.pyi +++ b/stdlib/fcntl.pyi @@ -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