Skip to content

Commit 0f270e6

Browse files
docutils: Input can take bytearray (#10108)
Part of #9006
1 parent b9e9540 commit 0f270e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)