This commit is contained in:
Julien Hebert
2016-03-22 06:33:31 +01:00
parent a8d2158aaf
commit 83e51ac3cb

View File

@@ -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]=...,