Skip to content

Commit 28b29d7

Browse files
hosakaTheGreatCabbage
authored andcommitted
Pass kwargs to asyncSlot decorator
1 parent bae9d60 commit 28b29d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qasync/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ def wrapper(*args, **kwargs):
772772
return wrapper
773773

774774

775-
def asyncSlot(*args):
775+
def asyncSlot(*args, **kwargs):
776776
"""Make a Qt async slot run on asyncio loop."""
777777

778778
def _error_handler(task):
@@ -782,7 +782,7 @@ def _error_handler(task):
782782
sys.excepthook(*sys.exc_info())
783783

784784
def outer_decorator(fn):
785-
@Slot(*args)
785+
@Slot(*args, **kwargs)
786786
@functools.wraps(fn)
787787
def wrapper(*args, **kwargs):
788788
task = asyncio.ensure_future(fn(*args, **kwargs))

0 commit comments

Comments
 (0)