From fae72b65f0fb28de4d7bf4ccff2e48ea0fd83f19 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Thu, 27 Oct 2022 02:17:03 -0700 Subject: [PATCH] io: use readablebuffer for bytesio --- stdlib/io.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/io.pyi b/stdlib/io.pyi index 3e9a6cd6861d..2d3aadc483f0 100644 --- a/stdlib/io.pyi +++ b/stdlib/io.pyi @@ -103,7 +103,7 @@ class FileIO(RawIOBase, BinaryIO): def __enter__(self: Self) -> Self: ... class BytesIO(BufferedIOBase, BinaryIO): - def __init__(self, initial_bytes: bytes = ...) -> None: ... + def __init__(self, initial_bytes: ReadableBuffer = ...) -> None: ... # BytesIO does not contain a "name" field. This workaround is necessary # to allow BytesIO sub-classes to add this field, as it is defined # as a read-only property on IO[].