Skip to content

Commit e72025e

Browse files
committed
viewer_protocol mypy
1 parent f8413ad commit e72025e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/opengeodeweb_viewer/rpc/viewer/viewer_protocols.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def resetVisualization(
8484

8585
@exportRpc(viewer_prefix + viewer_schemas_dict["set_background_color"]["rpc"])
8686
def setBackgroundColor(
87-
self, params: dict[str, Union[str, int, float, bool, dict]]
87+
self, params: dict[str, Union[str, int, float, bool, dict[str, Union[str, int, float]]]]
8888
) -> None:
8989
validate_schema(
9090
params, self.viewer_schemas_dict["set_background_color"], self.viewer_prefix
@@ -218,7 +218,7 @@ def computeEpsilon(self, renderer: vtk.vtkRenderer, z: float) -> float:
218218

219219
@exportRpc(viewer_prefix + viewer_schemas_dict["picked_ids"]["rpc"])
220220
def pickedIds(
221-
self, params: dict[str, Union[str, int, float, bool, list]]
221+
self, params: dict[str, Union[str, int, float, bool, list[str]]]
222222
) -> dict[str, list[str]]:
223223
validate_schema(
224224
params, self.viewer_schemas_dict["picked_ids"], self.viewer_prefix
@@ -264,7 +264,7 @@ def toggleAxes(self, params: dict[str, Union[str, int, float, bool]]) -> None:
264264

265265
@exportRpc(viewer_prefix + viewer_schemas_dict["update_camera"]["rpc"])
266266
def updateCamera(
267-
self, params: dict[str, Union[str, int, float, bool, dict, list]]
267+
self, params: dict[str, Union[str, int, float, bool, dict[str, Union[str, int, float, list[float]]], list[float]]]
268268
) -> None:
269269
validate_schema(
270270
params, self.viewer_schemas_dict["update_camera"], self.viewer_prefix

0 commit comments

Comments
 (0)