Skip to content

Commit 1fa92c3

Browse files
[autofix.ci] apply automated fixes
1 parent 51529b6 commit 1fa92c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/python/slint/slint/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,9 @@ def _callback_decorator(
403403

404404
try:
405405
import inspect
406+
406407
if inspect.iscoroutinefunction(callable):
408+
407409
def run_as_task(*args, **kwargs) -> None: # type: ignore
408410
loop = asyncio.get_event_loop()
409411
loop.create_task(callable(*args, **kwargs))

0 commit comments

Comments
 (0)