@@ -21,6 +21,7 @@ _T = TypeVar('_T')
2121_Context = Dict [str , Any ]
2222_ExceptionHandler = Callable [[asyncio .AbstractEventLoop , _Context ], Any ]
2323_SSLContext = Union [bool , None , ssl .SSLContext ]
24+ _TransProtPair = Tuple [asyncio .transports .BaseTransport , asyncio .protocols .BaseProtocol ]
2425
2526class Loop :
2627 def call_soon (
@@ -155,7 +156,7 @@ class Loop:
155156 server_hostname : Optional [str ] = ...,
156157 ssl_handshake_timeout : Optional [float ] = ...,
157158 ssl_shutdown_timeout : Optional [float ] = ...,
158- ) -> asyncio . events . _TransProtPair : ...
159+ ) -> _TransProtPair : ...
159160 @overload
160161 async def create_connection (
161162 self ,
@@ -172,7 +173,7 @@ class Loop:
172173 server_hostname : Optional [str ] = ...,
173174 ssl_handshake_timeout : Optional [float ] = ...,
174175 ssl_shutdown_timeout : Optional [float ] = ...,
175- ) -> asyncio . events . _TransProtPair : ...
176+ ) -> _TransProtPair : ...
176177 async def create_unix_server (
177178 self ,
178179 protocol_factory : asyncio .events ._ProtocolFactory ,
@@ -195,7 +196,7 @@ class Loop:
195196 server_hostname : Optional [str ] = ...,
196197 ssl_handshake_timeout : Optional [float ] = ...,
197198 ssl_shutdown_timeout : Optional [float ] = ...,
198- ) -> asyncio . events . _TransProtPair : ...
199+ ) -> _TransProtPair : ...
199200 def default_exception_handler (self , context : _Context ) -> None : ...
200201 def get_exception_handler (self ) -> Optional [_ExceptionHandler ]: ...
201202 def set_exception_handler (self , handler : Optional [_ExceptionHandler ]) -> None : ...
@@ -217,7 +218,7 @@ class Loop:
217218 ssl : _SSLContext = ...,
218219 ssl_handshake_timeout : Optional [float ] = ...,
219220 ssl_shutdown_timeout : Optional [float ] = ...,
220- ) -> asyncio . events . _TransProtPair : ...
221+ ) -> _TransProtPair : ...
221222 async def run_in_executor (
222223 self , executor : Any , func : Callable [..., _T ], * args : Any
223224 ) -> _T : ...
@@ -231,7 +232,7 @@ class Loop:
231232 stdout : Any = ...,
232233 stderr : Any = ...,
233234 ** kwargs : Any ,
234- ) -> asyncio . events . _TransProtPair : ...
235+ ) -> _TransProtPair : ...
235236 async def subprocess_exec (
236237 self ,
237238 protocol_factory : asyncio .events ._ProtocolFactory ,
@@ -240,13 +241,13 @@ class Loop:
240241 stdout : Any = ...,
241242 stderr : Any = ...,
242243 ** kwargs : Any ,
243- ) -> asyncio . events . _TransProtPair : ...
244+ ) -> _TransProtPair : ...
244245 async def connect_read_pipe (
245246 self , protocol_factory : asyncio .events ._ProtocolFactory , pipe : Any
246- ) -> asyncio . events . _TransProtPair : ...
247+ ) -> _TransProtPair : ...
247248 async def connect_write_pipe (
248249 self , protocol_factory : asyncio .events ._ProtocolFactory , pipe : Any
249- ) -> asyncio . events . _TransProtPair : ...
250+ ) -> _TransProtPair : ...
250251 def add_signal_handler (
251252 self , sig : int , callback : Callable [..., Any ], * args : Any
252253 ) -> None : ...
@@ -264,7 +265,7 @@ class Loop:
264265 reuse_port : Optional [bool ] = ...,
265266 allow_broadcast : Optional [bool ] = ...,
266267 sock : Optional [socket ] = ...,
267- ) -> asyncio . events . _TransProtPair : ...
268+ ) -> _TransProtPair : ...
268269 async def shutdown_asyncgens (self ) -> None : ...
269270 async def shutdown_default_executor (self ) -> None : ...
270271 # Loop doesn't implement these, but since they are marked as abstract in typeshed,
0 commit comments