Skip to content

Commit f342523

Browse files
authored
Change AsyncioExecutor loop argument type (#273)
1 parent 26b0fc0 commit f342523

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql/execution/executors/asyncio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Necessary for static type checking
88
if False: # flake8: noqa
9-
from asyncio.unix_events import _UnixSelectorEventLoop
9+
from asyncio import AbstractEventLoop
1010
from typing import Optional, Any, Callable, List
1111

1212
try:
@@ -51,7 +51,7 @@ def asyncgen_to_observable(asyncgen, loop=None):
5151

5252
class AsyncioExecutor(object):
5353
def __init__(self, loop=None):
54-
# type: (Optional[_UnixSelectorEventLoop]) -> None
54+
# type: (Optional[AbstractEventLoop]) -> None
5555
if loop is None:
5656
loop = get_event_loop()
5757
self.loop = loop

0 commit comments

Comments
 (0)