io, codecs: improve bytes handling (#9059)

This commit is contained in:
Nikita Sobolev
2022-11-02 19:32:06 +03:00
committed by GitHub
parent ab9988a5ed
commit f972bdfd96
2 changed files with 5 additions and 5 deletions

View File

@@ -190,7 +190,7 @@ class StringIO(TextIOWrapper):
class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
def __init__(self, decoder: codecs.IncrementalDecoder | None, translate: bool, errors: str = ...) -> None: ...
def decode(self, input: bytes | str, final: bool = ...) -> str: ...
def decode(self, input: ReadableBuffer | str, final: bool = ...) -> str: ...
@property
def newlines(self) -> str | tuple[str, ...] | None: ...
def setstate(self, __state: tuple[bytes, int]) -> None: ...