From 780642010523de6967241a3458fd72ceac8b3291 Mon Sep 17 00:00:00 2001 From: Ben Leslie Date: Sat, 18 Nov 2017 17:57:55 -0600 Subject: [PATCH] Fix missing colon in StreamHandler.stream type annotation (#1753) The missing colon in the variable type annotation means that the type of stream is currently incorrectly determined to be of type ellipsis, rather than IO[str]. --- stdlib/2and3/logging/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/logging/__init__.pyi b/stdlib/2and3/logging/__init__.pyi index 2b605032c..9175fff53 100644 --- a/stdlib/2and3/logging/__init__.pyi +++ b/stdlib/2and3/logging/__init__.pyi @@ -366,7 +366,7 @@ if sys.version_info >= (3,): class StreamHandler(Handler): - stream = ... # type IO[str] + stream = ... # type: IO[str] if sys.version_info >= (3,): terminator = ... # type: str def __init__(self, stream: Optional[IO[str]] = ...) -> None: ...