docutils: Input can take bytearray (#10108)

Part of #9006
This commit is contained in:
Jelle Zijlstra
2023-04-29 08:09:14 -07:00
committed by GitHub
parent b9e9540db4
commit 0f270e61bf

View File

@@ -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):