From 9503f81b50d6fcb5109bb53ebba0807f4378af24 Mon Sep 17 00:00:00 2001 From: Benedikt Burger <67148916+BenediktBurger@users.noreply.github.com> Date: Mon, 26 Feb 2024 14:27:37 +0100 Subject: [PATCH] Fix typing. --- pyleco/json_utils/rpc_server.py | 2 +- tests/json_utils/test_rpc_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyleco/json_utils/rpc_server.py b/pyleco/json_utils/rpc_server.py index 1d035626..b1e83e62 100644 --- a/pyleco/json_utils/rpc_server.py +++ b/pyleco/json_utils/rpc_server.py @@ -25,4 +25,4 @@ try: from openrpc import RPCServer # type: ignore # noqa: F401 except ModuleNotFoundError: - from .rpc_server_definition import RPCServer # noqa: F401 + from .rpc_server_definition import RPCServer # type: ignore # noqa: F401 diff --git a/tests/json_utils/test_rpc_server.py b/tests/json_utils/test_rpc_server.py index 060da28a..271f5c87 100644 --- a/tests/json_utils/test_rpc_server.py +++ b/tests/json_utils/test_rpc_server.py @@ -35,7 +35,7 @@ # Load openrpc server for comparison, if available. from openrpc import RPCServer as RPCServerOpen except ModuleNotFoundError: - rpc_server_classes = [RPCServer] + rpc_server_classes: list = [RPCServer] else: rpc_server_classes = [RPCServer, RPCServerOpen]