Corrections to logging.StreamHandler stubs (#1624) (#1625)

- Missing attribute `StreamHandler.stream`
- Missing attribute `StreamHandler.terminator`
- terminator is only available in 3.3+
This commit is contained in:
Ben Leslie
2017-09-23 17:36:51 -05:00
committed by Jelle Zijlstra
parent 1f867d8ab8
commit b8f7ba8e8a

View File

@@ -366,6 +366,9 @@ if sys.version_info >= (3,):
class StreamHandler(Handler):
stream = ... # type IO[str]
if sys.version_info >= (3,):
terminator = ... # type: str
def __init__(self, stream: Optional[IO[str]] = ...) -> None: ...