mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
fix bugs in builtins/2.7/*.pyi
This commit is contained in:
@@ -24,10 +24,11 @@ class StringIO(IO[str]):
|
||||
def truncate(self, size: int = None) -> int:
|
||||
raise IOError()
|
||||
def writable(self) -> bool: ...
|
||||
def next(self) -> str: ...
|
||||
def __iter__(self) -> "InputType": ...
|
||||
def __next__(self) -> str: ...
|
||||
def __enter__(self) -> Any: ...
|
||||
def __exit__(self, exc_type: type, exc_val: Any, exc_tb: Any) -> Any: ...
|
||||
# The C extension actually returns an "InputType".
|
||||
def __iter__(self) -> Iterator[str]: ...
|
||||
# only StringO:
|
||||
def reset(self) -> None: ...
|
||||
def write(self, b: Union[str, unicode]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user