[asyncio] Change _set_running_loop(loop: AbstractEventLoop) to _set_running_loop(loop: Optional[AbstractEventLoop]) (#2828)

This commit is contained in:
Chen Li
2019-03-10 16:29:53 -07:00
committed by Sebastian Rittau
parent 6282e9f59f
commit 012901e318

View File

@@ -239,7 +239,7 @@ def new_event_loop() -> AbstractEventLoop: ...
def get_child_watcher() -> Any: ... # TODO: unix_events.AbstractChildWatcher
def set_child_watcher(watcher: Any) -> None: ... # TODO: unix_events.AbstractChildWatcher
def _set_running_loop(loop: AbstractEventLoop) -> None: ...
def _set_running_loop(loop: Optional[AbstractEventLoop]) -> None: ...
def _get_running_loop() -> AbstractEventLoop: ...
if sys.version_info >= (3, 7):