IncrementalNewlineDecoder.decode accepts str (#3312)

The decode method of IncrementalNewlineDecoder accepts a string when its decoder is None.
This commit is contained in:
Ryan Morshead
2019-10-06 02:33:26 -07:00
committed by Sebastian Rittau
parent 79a8f0b8c6
commit 3743b64b07

View File

@@ -206,4 +206,4 @@ class StringIO(TextIOWrapper):
def __enter__(self) -> StringIO: ...
class IncrementalNewlineDecoder(codecs.IncrementalDecoder):
def decode(self, input: bytes, final: bool = ...) -> str: ...
def decode(self, input: Union[bytes, str], final: bool = ...) -> str: ...