Fix ClientConnectedCallback in asyncio.stream (#900)

This commit is contained in:
Tomasz Elendt
2017-01-30 22:53:33 +01:00
committed by Guido van Rossum
parent 9625cc738f
commit a5e6ac4339

View File

@@ -1,12 +1,12 @@
import socket
from typing import Any, Callable, Generator, Iterable, Tuple
from typing import Any, Awaitable, Callable, Generator, Iterable, Optional, Tuple
from . import coroutines
from . import events
from . import protocols
from . import transports
ClientConnectedCallback = Callable[[Tuple[StreamReader, StreamWriter]], None]
ClientConnectedCallback = Callable[[StreamReader, StreamWriter], Optional[Awaitable[None]]]
__all__ = ... # type: str