mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
import SelectorEventLoop from asyncio.unix_events when not on windows (#3753)
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -110,12 +110,11 @@ if sys.version_info >= (3, 7):
|
||||
)
|
||||
|
||||
if sys.platform != 'win32':
|
||||
# This is already imported above on Windows.
|
||||
SelectorEventLoop: Type[AbstractEventLoop]
|
||||
from .unix_events import (
|
||||
AbstractChildWatcher as AbstractChildWatcher,
|
||||
BaseChildWatcher as BaseChildWatcher,
|
||||
SafeChildWatcher as SafeChildWatcher,
|
||||
SelectorEventLoop as SelectorEventLoop,
|
||||
)
|
||||
if sys.version_info >= (3, 8):
|
||||
from .unix_events import MultiLoopChildWatcher as MultiLoopChildWatcher, ThreadedChildWatcher as ThreadedChildWatcher
|
||||
|
||||
Reference in New Issue
Block a user