Skip to content

Commit 1d1b371

Browse files
authored
remove use of deprecated function
1 parent f5d4787 commit 1d1b371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qasync/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def close(self):
515515

516516
def call_later(self, delay, callback, *args, context=None):
517517
"""Register callback to be invoked after a certain delay."""
518-
if asyncio.iscoroutinefunction(callback):
518+
if inspect.iscoroutinefunction(callback):
519519
raise TypeError("coroutines cannot be used with call_later")
520520
if not callable(callback):
521521
raise TypeError(

0 commit comments

Comments
 (0)