mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Fix ClientConnectedCallback in asyncio.stream (#900)
This commit is contained in:
committed by
Guido van Rossum
parent
9625cc738f
commit
a5e6ac4339
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user