File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
services/web/server/src/simcore_service_webserver/socketio Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import inspect
2+ from collections .abc import Awaitable , Callable
23from functools import wraps
34from types import ModuleType
4- from typing import Any , Awaitable , Callable
5+ from typing import Any
56
67from aiohttp import web
78from 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
You can’t perform that action at this time.
0 commit comments