io anystr

This commit is contained in:
Julien Hebert
2016-03-21 10:58:00 +01:00
parent 6df6bc8f86
commit 871ebbf566

View File

@@ -1,4 +1,4 @@
from typing import Iterable, BinaryIO, List, Callable
from typing import Iterable, BinaryIO, List, Callable, IO
def input(
@@ -7,7 +7,7 @@ def input(
backup: str=...,
bufsize: int=...,
mode: str=...,
openhook: Callable[[str, str], BinaryIO]=...
openhook: Callable[[str, str], IO[AnyStr]]=...
): ...
@@ -26,7 +26,7 @@ class FileInput(Iterable):
backup: str=...,
bufsize: int=...,
mode: str=...,
openhook: Callable[[str, str], BinaryIO]=...
openhook: Callable[[str, str], IO[AnyStr]]=...
) -> None: ...
def __del__(self) -> None: ...
@@ -45,5 +45,5 @@ class FileInput(Iterable):
def isfirstline(self) -> bool: ...
def isstdin(self) -> bool: ...
def hook_compressed(filename: str, mode: str) -> BinaryIO: ...
def hook_encoded(encoding: str) -> BinaryIO: ...
def hook_compressed(filename: str, mode: str) -> IO[AnyStr]: ...
def hook_encoded(encoding: str) -> IO[AnyStr]: ...