From 17edf762750eb345866ca8302c58e38835b3593a Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 29 Apr 2023 07:50:48 -0700 Subject: [PATCH] aiofiles: use ReadableBuffer (#10105) Part of #9006 --- stubs/aiofiles/aiofiles/os.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stubs/aiofiles/aiofiles/os.pyi b/stubs/aiofiles/aiofiles/os.pyi index c87bb2a0d..ad15feec9 100644 --- a/stubs/aiofiles/aiofiles/os.pyi +++ b/stubs/aiofiles/aiofiles/os.pyi @@ -1,5 +1,5 @@ import sys -from _typeshed import FileDescriptorOrPath, GenericPath, StrOrBytesPath +from _typeshed import FileDescriptorOrPath, GenericPath, ReadableBuffer, StrOrBytesPath from asyncio.events import AbstractEventLoop from collections.abc import Sequence from os import _ScandirIterator, stat_result @@ -68,8 +68,8 @@ if sys.platform != "win32": in_fd: int, offset: int, count: int, - headers: Sequence[bytes] = ..., - trailers: Sequence[bytes] = ..., + headers: Sequence[ReadableBuffer] = ..., + trailers: Sequence[ReadableBuffer] = ..., flags: int = ..., *, loop: AbstractEventLoop | None = ...,