From c19e266dcfde9e8648c5f000bfa1fa88524f8ba8 Mon Sep 17 00:00:00 2001 From: Yusuke Miyazaki Date: Sat, 20 May 2017 09:02:57 +0900 Subject: [PATCH] Fix StringIO stub for Python 3 (#1275) --- stdlib/3/io.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index 167385318..a22955bb1 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -255,5 +255,6 @@ class StringIO(TextIOWrapper): newline: Optional[str] = ...) -> None: ... name = ... # type: str def getvalue(self) -> str: ... + def __enter__(self) -> 'StringIO': ... class IncrementalNewlineDecoder(codecs.IncrementalDecoder): ...