From 32d9c8cb8fd13b0f7911ca455e25dfb555cb7f8e Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Wed, 19 Jul 2017 10:28:25 -0700 Subject: [PATCH] make io.IncrementalNewlineDecoder concrete (#1489) 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 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: ...