Skip to content

Commit 8412bd5

Browse files
committed
asyncio.iscoroutinefunction() -> inspect.iscoroutinefunction()
1 parent e974a37 commit 8412bd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chess/engine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import copy
99
import dataclasses
1010
import enum
11+
import inspect
1112
import logging
1213
import math
1314
import shlex
@@ -58,7 +59,7 @@ def run_in_background(coroutine: Callable[[concurrent.futures.Future[T]], Corout
5859
The coroutine and all remaining tasks continue running in the background
5960
until complete.
6061
"""
61-
assert asyncio.iscoroutinefunction(coroutine)
62+
assert inspect.iscoroutinefunction(coroutine)
6263

6364
future: concurrent.futures.Future[T] = concurrent.futures.Future()
6465

0 commit comments

Comments
 (0)