mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 05:04:44 +08:00
io, codecs: improve bytes handling (#9059)
This commit is contained in:
1 parent
ab9988a5ed
commit
f972bdfd96
2 files changed
+5
-5
No files matched your search
+1
-1
@@ -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