mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
fix bugs in cStringIO
This commit is contained in:
@@ -24,13 +24,12 @@ class StringIO(IO[str]):
|
||||
def truncate(self, size: int = None) -> int:
|
||||
raise IOError()
|
||||
def writable(self) -> bool: ...
|
||||
def writelines(self, lines: Iterable[str]) -> None: ...
|
||||
def next(self) -> str: ...
|
||||
def __iter__(self) -> "InputType": ...
|
||||
def __enter__(self) -> Any: ...
|
||||
def __exit__(self, exc_type: type, exc_val: Any, exc_tb: Any) -> Any: ...
|
||||
# only StringO:
|
||||
def reset() -> None: ...
|
||||
def reset(self) -> None: ...
|
||||
def write(self, b: Union[str, unicode]) -> None: ...
|
||||
def writelines(self, lines: Iterable[Union[str, unicode]]) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user