-
Notifications
You must be signed in to change notification settings - Fork 601
Closed
Description
uvloop needs to migrate to inspect.iscoroutinefunction. (c.f. python/cpython#122875)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../.local/share/uv/python/cpython-3.14.3+freethreaded-linux-x86_64-gnu/lib/python3.14t/asyncio/threads.py:25: in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
uvloop/loop.pyx:2734: in uvloop.loop.Loop.run_in_executor
???
../../../.local/share/uv/python/cpython-3.14.3+freethreaded-linux-x86_64-gnu/lib/python3.14t/asyncio/coroutines.py:23: in iscoroutinefunction
warnings._deprecated("asyncio.iscoroutinefunction",
Lines 2725 to 2727 in a308f75
| def run_in_executor(self, executor, func, *args): | |
| if aio_iscoroutine(func) or inspect_iscoroutinefunction(func): | |
| raise TypeError("coroutines cannot be used with run_in_executor()") |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels