mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
io, codecs: improve bytes handling (#9059)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user