mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
add IncrementalNewlineDecoder constructor (#3311)
This commit is contained in:
committed by
Sebastian Rittau
parent
3743b64b07
commit
b9342eca0a
@@ -206,4 +206,6 @@ class StringIO(TextIOWrapper):
|
||||
def __enter__(self) -> StringIO: ...
|
||||
|
||||
class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
|
||||
def __init__(self, decoder: Optional[codecs.IncrementalDecoder],
|
||||
translate: bool, errors: str = ...) -> None: ...
|
||||
def decode(self, input: Union[bytes, str], final: bool = ...) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user