Skip to content

Commit 6554427

Browse files
committed
docutils: Input can take bytearray
Part of python#9006
1 parent f42f665 commit 6554427

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎stubs/docutils/docutils/io.pyi‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class Input(TransformSpec):
2525
component_type: ClassVar[str]
2626
default_source_path: ClassVar[str | None]
2727
def read(self) -> Any: ...
28-
def decode(self, data: str | bytes) -> str: ...
28+
def decode(self, data: str | bytes | bytearray) -> str: ...
2929
coding_slug: ClassVar[Pattern[bytes]]
3030
byte_order_marks: ClassVar[tuple[tuple[bytes, str], ...]]
31-
def determine_encoding_from_data(self, data: str | bytes) -> str | None: ...
31+
def determine_encoding_from_data(self, data: str | bytes | bytearray) -> str | None: ...
3232
def isatty(self) -> bool: ...
3333

3434
class Output(TransformSpec):

0 commit comments

Comments
 (0)