mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-29 07:06:55 +08:00
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].
This commit is contained in:
committed by
Guido van Rossum
parent
821c765991
commit
7806420105
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user