Skip to content

Commit 02c79e2

Browse files
committed
ruff
1 parent b62bb4e commit 02c79e2

File tree

1 file changed

+4
-4
lines changed
  • services/web/server/src/simcore_service_webserver/socketio

1 file changed

+4
-4
lines changed

services/web/server/src/simcore_service_webserver/socketio/_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import inspect
2+
from collections.abc import Awaitable, Callable
23
from functools import wraps
34
from types import ModuleType
4-
from typing import Any, Awaitable, Callable
5+
from typing import Any
56

67
from aiohttp import web
78
from socketio import AsyncServer # type: ignore[import-untyped]
@@ -103,7 +104,6 @@ def register_socketio_handler(func: Callable) -> Callable:
103104
if is_handler:
104105
_socketio_handlers_registry.append(func)
105106
else:
106-
raise SyntaxError(
107-
"the function shall be of type fct(*args, app: web.Application"
108-
)
107+
msg = "the function shall be of type fct(*args, app: web.Application"
108+
raise SyntaxError(msg)
109109
return func

0 commit comments

Comments
 (0)