From 83e51ac3cbd889915a3e84d6136b09a0f1ec6c59 Mon Sep 17 00:00:00 2001 From: Julien Hebert Date: Tue, 22 Mar 2016 06:33:31 +0100 Subject: [PATCH] inherit --- stdlib/3/fileinput.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/3/fileinput.pyi b/stdlib/3/fileinput.pyi index 5fafaddeb..ff64c40e0 100644 --- a/stdlib/3/fileinput.pyi +++ b/stdlib/3/fileinput.pyi @@ -1,4 +1,4 @@ -from typing import Iterable, BinaryIO, List, Callable, IO, AnyStr +from typing import Iterable, BinaryIO, List, Callable, IO, AnyStr, Generic def input( @@ -18,7 +18,7 @@ def lineno() -> int: ... def isfirstline() -> bool: ... def isstdin() -> bool: ... -class FileInput(Iterable): +class FileInput(Iterable[AnyStr], Generic[AnyStr]): def __init__( self, files: List[str]=...,