diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index 9d9351177..c068d2cb2 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -1,5 +1,3 @@ -# Stubs for io - from typing import ( List, BinaryIO, TextIO, Iterator, Union, Optional, Callable, Tuple, Any, IO, Iterable ) @@ -251,4 +249,5 @@ class StringIO(TextIOWrapper): def getvalue(self) -> str: ... def __enter__(self) -> 'StringIO': ... -class IncrementalNewlineDecoder(codecs.IncrementalDecoder): ... +class IncrementalNewlineDecoder(codecs.IncrementalDecoder): + def decode(self, input: codecs._encoded, final: bool = ...) -> codecs._decoded: ...