add IncrementalNewlineDecoder constructor (#3311)

This commit is contained in:
Ryan Morshead
2019-10-06 08:22:03 -07:00
committed by Sebastian Rittau
parent 3743b64b07
commit b9342eca0a

View File

@@ -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: ...