From 0f270e61bfaa5677cecc0e3401084924fe0e04ce Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sat, 29 Apr 2023 08:09:14 -0700 Subject: [PATCH] docutils: Input can take bytearray (#10108) Part of #9006 --- stubs/docutils/docutils/io.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/docutils/docutils/io.pyi b/stubs/docutils/docutils/io.pyi index f99949d96..39efb9682 100644 --- a/stubs/docutils/docutils/io.pyi +++ b/stubs/docutils/docutils/io.pyi @@ -25,10 +25,10 @@ class Input(TransformSpec): component_type: ClassVar[str] default_source_path: ClassVar[str | None] def read(self) -> Any: ... - def decode(self, data: str | bytes) -> str: ... + def decode(self, data: str | bytes | bytearray) -> str: ... coding_slug: ClassVar[Pattern[bytes]] byte_order_marks: ClassVar[tuple[tuple[bytes, str], ...]] - def determine_encoding_from_data(self, data: str | bytes) -> str | None: ... + def determine_encoding_from_data(self, data: str | bytes | bytearray) -> str | None: ... def isatty(self) -> bool: ... class Output(TransformSpec):