mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
ignores complexity errors
This commit is contained in:
parent
900017791a
commit
10ac007a0c
@ -114,7 +114,7 @@ def setup_sio_server(
|
|||||||
return sio
|
return sio
|
||||||
|
|
||||||
|
|
||||||
def setup_sio_events(sio: socketio.AsyncServer, state_manager: StateManager) -> None:
|
def setup_sio_events(sio: socketio.AsyncServer, state_manager: StateManager) -> None: # noqa: C901
|
||||||
@sio.event # type: ignore
|
@sio.event # type: ignore
|
||||||
async def connect(sid: str, environ: Any) -> None:
|
async def connect(sid: str, environ: Any) -> None:
|
||||||
logging.debug("Client [%s] connected", click.style(str(sid), fg="cyan"))
|
logging.debug("Client [%s] connected", click.style(str(sid), fg="cyan"))
|
||||||
|
@ -54,7 +54,7 @@ class SerializationValueError(Exception):
|
|||||||
|
|
||||||
class Serializer:
|
class Serializer:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def serialize_object(obj: Any, access_path: str = "") -> SerializedObject:
|
def serialize_object(obj: Any, access_path: str = "") -> SerializedObject: # noqa: C901
|
||||||
result: SerializedObject
|
result: SerializedObject
|
||||||
|
|
||||||
if isinstance(obj, Exception):
|
if isinstance(obj, Exception):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user