Skip to content

Commit

Permalink
docutils: Input can take bytearray (#10108)
Browse files Browse the repository at this point in the history
Part of #9006
  • Loading branch information
JelleZijlstra authored Apr 29, 2023
1 parent b9e9540 commit 0f270e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/docutils/docutils/io.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0f270e6

Please sign in to comment.