We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae9d60 commit 28b29d7Copy full SHA for 28b29d7
1 file changed
qasync/__init__.py
@@ -772,7 +772,7 @@ def wrapper(*args, **kwargs):
772
return wrapper
773
774
775
-def asyncSlot(*args):
+def asyncSlot(*args, **kwargs):
776
"""Make a Qt async slot run on asyncio loop."""
777
778
def _error_handler(task):
@@ -782,7 +782,7 @@ def _error_handler(task):
782
sys.excepthook(*sys.exc_info())
783
784
def outer_decorator(fn):
785
- @Slot(*args)
+ @Slot(*args, **kwargs)
786
@functools.wraps(fn)
787
def wrapper(*args, **kwargs):
788
task = asyncio.ensure_future(fn(*args, **kwargs))
0 commit comments