mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
IncrementalNewlineDecoder.decode accepts str (#3312)
The decode method of IncrementalNewlineDecoder accepts a string when its decoder is None.
This commit is contained in:
committed by
Sebastian Rittau
parent
79a8f0b8c6
commit
3743b64b07
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user