From 44d278045f9cc5837f54634656f0d14e94da7c97 Mon Sep 17 00:00:00 2001 From: David Fisher Date: Fri, 11 Mar 2016 16:33:02 -0800 Subject: [PATCH] Fix tests --- stdlib/3/io.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index ca410f0ab..2cc7ee999 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -90,7 +90,7 @@ class BytesIO(BinaryIO): def __iter__(self) -> Iterator[bytes]: ... def __enter__(self) -> 'BytesIO': ... - def __exit__(self, type, value, traceback) -> bool: ... + def __exit__(self, t: type = None, value: BaseException = None, traceback: Any = None) -> bool: ... class StringIO(TextIO): def __init__(self, initial_value: str = ..., @@ -117,7 +117,7 @@ class StringIO(TextIO): def __iter__(self) -> Iterator[str]: ... def __enter__(self) -> 'StringIO': ... - def __exit__(self, type, value, traceback) -> bool: ... + def __exit__(self, t: type = None, value: BaseException = None, traceback: Any = None) -> bool: ... class TextIOWrapper(TextIO): # TODO: This is actually a base class of _io._TextIOBase. @@ -147,4 +147,4 @@ class TextIOWrapper(TextIO): def __iter__(self) -> Iterator[str]: ... def __enter__(self) -> StringIO: ... - def __exit__(self, type, value, traceback) -> bool: ... + def __exit__(self, t: type = None, value: BaseException = None, traceback: Any = None) -> bool: ...