88from ._version import __version__ # NOQA
99
1010
11- __all__ : tuple [str , ...] = ('new_event_loop' ,)
11+ __all__ : _typing . Tuple [str , ...] = ('new_event_loop' ,)
1212_AbstractEventLoop = __asyncio .AbstractEventLoop
1313
1414
@@ -147,7 +147,7 @@ def install() -> None:
147147 __asyncio .set_event_loop_policy (EventLoopPolicy ())
148148
149149 class EventLoopPolicy (
150- __asyncio .AbstractEventLoopPolicy # type: ignore[name-defined,misc]
150+ __asyncio .AbstractEventLoopPolicy # type: ignore
151151 ):
152152 """Event loop policy for uvloop.
153153
@@ -178,12 +178,12 @@ def set_child_watcher(
178178 ...
179179
180180 class _Local (_threading .local ):
181- _loop : _typing .Optional [Loop ] = None
181+ _loop : _typing .Optional [_AbstractEventLoop ] = None
182182
183183 def __init__ (self ) -> None :
184184 self ._local = self ._Local ()
185185
186- def get_event_loop (self ) -> Loop :
186+ def get_event_loop (self ) -> _AbstractEventLoop :
187187 """Get the event loop for the current context.
188188
189189 Returns an instance of EventLoop or raises an exception.
@@ -196,7 +196,7 @@ def get_event_loop(self) -> Loop:
196196
197197 return self ._local ._loop
198198
199- def set_event_loop (self , loop : Loop ) -> None :
199+ def set_event_loop (self , loop : _AbstractEventLoop ) -> None :
200200 """Set the event loop."""
201201 if loop is not None and not isinstance (loop , _AbstractEventLoop ):
202202 raise TypeError (
0 commit comments