mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
CI: Fix formatting
This commit is contained in:
parent
f6dbe7749f
commit
dcd0945dfc
1 changed files with 2 additions and 0 deletions
|
|
@ -403,7 +403,9 @@ def _callback_decorator(
|
|||
|
||||
try:
|
||||
import inspect
|
||||
|
||||
if inspect.iscoroutinefunction(callable):
|
||||
|
||||
def run_as_task(*args, **kwargs) -> None: # type: ignore
|
||||
loop = asyncio.get_event_loop()
|
||||
loop.create_task(callable(*args, **kwargs))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue