diff --git a/stdlib/2.7/StringIO.pyi b/stdlib/2.7/StringIO.pyi index 3c90129bd..17fe7a10b 100644 --- a/stdlib/2.7/StringIO.pyi +++ b/stdlib/2.7/StringIO.pyi @@ -6,6 +6,7 @@ class StringIO(IO[AnyStr], Generic[AnyStr]): closed = ... # type: bool softspace = ... # type: int len = ... # type: int + name = ... # type: str def __init__(self, buf: AnyStr = ...) -> None: ... def __iter__(self) -> Iterator[AnyStr]: ... def next(self) -> AnyStr: ... diff --git a/stdlib/2.7/io.pyi b/stdlib/2.7/io.pyi index 376346333..add0bfbda 100644 --- a/stdlib/2.7/io.pyi +++ b/stdlib/2.7/io.pyi @@ -49,6 +49,7 @@ class StringIO(TextIO): def __init__(self, initial_value: unicode = ..., newline: unicode = ...) -> None: ... # TODO see comments in BinaryIO for missing functionality + name = ... # type: str def close(self) -> None: ... def closed(self) -> bool: ... def fileno(self) -> int: ... diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index de2c7a46e..b9c9833d7 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -246,6 +246,7 @@ class TextIOWrapper(TextIO): class StringIO(TextIOWrapper): def __init__(self, initial_value: str = ..., newline: Optional[str] = ...) -> None: ... + name = ... # type: str def getvalue(self) -> str: ... class IncrementalNewlineDecoder(codecs.IncrementalDecoder): ...