mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
io anystr
This commit is contained in:
@@ -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]: ...
|
||||
|
||||
Reference in New Issue
Block a user