From c5aa191f946457040e28a7f5974df91fe0763d70 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 16 Jul 2017 18:39:30 -0700 Subject: [PATCH] make io.IncrementalNewlineDecoder concrete Part of #1476 --- stdlib/3/io.pyi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index 4b1deb742e21..a45cc9f04183 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 ) @@ -257,4 +255,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: ...