Skip to content

Commit 7806420

Browse files
bennolesliegvanrossum
authored andcommitted
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].
1 parent 821c765 commit 7806420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/2and3/logging/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ if sys.version_info >= (3,):
366366

367367

368368
class StreamHandler(Handler):
369-
stream = ... # type IO[str]
369+
stream = ... # type: IO[str]
370370
if sys.version_info >= (3,):
371371
terminator = ... # type: str
372372
def __init__(self, stream: Optional[IO[str]] = ...) -> None: ...

0 commit comments

Comments
 (0)