8000 [pre-commit.ci] auto fixes from pre-commit.com hooks · pyscript/pyscript@8bb46be · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bb46be

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f923602 commit 8bb46be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyscript.core/src/stdlib/pyscript/event_handling.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ def decorator(func):
4343

4444
# Function is async: must be awaited
4545
if inspect.iscoroutinefunction(func):
46+
4647
async def wrapper(*args, **kwargs):
4748
await func()
49+
4850
else:
51+
4952
def wrapper(*args, **kwargs):
5053
func()
5154

0 commit comments

Comments
 (0)
0