Skip to content

Commit f915695

Browse files
committed
Fix mypy issue with uvloop
Issue: MagicStack/uvloop#575. Can revert when underlying issue fixed.
1 parent 50e5bef commit f915695

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vcorelib/asyncio/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,12 @@ def try_uvloop_runner(
202202
# type: ignore[attr-defined,unused-ignore]
203203
eloop = stack.enter_context(
204204
getattr(_asyncio, "Runner")(
205-
debug=debug, loop_factory=uvloop.new_event_loop
205+
debug=debug,
206+
loop_factory=uvloop.new_event_loop, # type: ignore
206207
)
207208
).get_loop()
208209
except AttributeError: # pragma: nocover
209-
uvloop.install()
210+
uvloop.install() # type: ignore
210211

211212
yield normalize_eloop(eloop)
212213

0 commit comments

Comments
 (0)