Skip to content

Commit 3732c42

Browse files
committed
cast used
1 parent 15f1aeb commit 3732c42

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/opengeodeweb_viewer/rpc/utils_protocols.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Standard library imports
22
import os
3+
from typing import cast
34

45
# Third party imports
56
from wslink import register as exportRpc # type: ignore
@@ -36,7 +37,7 @@ def importProject(self, rpc_params: ImportProject) -> None:
3637
flush=True,
3738
)
3839
validate_schema(
39-
rpc_params.to_dict(),
40+
cast(dict[str, str], rpc_params.to_dict()),
4041
self.utils_schemas_dict["import_project"],
4142
self.utils_prefix,
4243
)

tests/test_utils_protocols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_reset_project_after_import(
2929

3030
server.call(
3131
VtkUtilsView.utils_prefix
32-
+ VtkUtilsView.utils_schemas_dict["reset_project"]["rpc"]
32+
+ VtkUtilsView.utils_schemas_dict["import_project"]["rpc"]
3333
)
3434
server.get_response()
3535

0 commit comments

Comments
 (0)