Skip to content

Commit 1ab77f0

Browse files
MaxNumeriquegithub-actions[bot]
authored andcommitted
Apply prepare changes
1 parent 915d829 commit 1ab77f0

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

src/opengeodeweb_viewer/rpc/mesh/mesh_protocols.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def setMeshOpacity(self, params: dict[str, Union[str, int, float, bool]]) -> Non
9696

9797
@exportRpc(mesh_prefix + mesh_schemas_dict["color"]["rpc"])
9898
def setMeshColor(
99-
self, params: dict[str, Union[str, int, float, bool, dict[str, Union[str, int, float]]]]
99+
self,
100+
params: dict[
101+
str, Union[str, int, float, bool, dict[str, Union[str, int, float]]]
102+
],
100103
) -> None:
101104
validate_schema(params, self.mesh_schemas_dict["color"], self.mesh_prefix)
102105
color_dict = params["color"]
@@ -109,7 +112,9 @@ def setMeshColor(
109112
self.SetColor(data_id, red, green, blue)
110113

111114
@exportRpc(mesh_prefix + mesh_schemas_dict["apply_textures"]["rpc"])
112-
def meshApplyTextures(self, params: dict[str, Union[str, list[dict[str, str]]]]) -> None:
115+
def meshApplyTextures(
116+
self, params: dict[str, Union[str, list[dict[str, str]]]]
117+
) -> None:
113118
validate_schema(
114119
params, self.mesh_schemas_dict["apply_textures"], self.mesh_prefix
115120
)

src/tests/conftest.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ def __init__(self, log: str) -> None:
3131
self._init_ws()
3232
self._drain_initial_messages()
3333

34-
def call(self, rpc: str, params: Optional[list[Union[dict[str, Union[str, int, float, bool]], int]]] = None) -> None:
34+
def call(
35+
self,
36+
rpc: str,
37+
params: Optional[
38+
list[Union[dict[str, Union[str, int, float, bool]], int]]
39+
] = None,
40+
) -> None:
3541
if params is None:
3642
params = [{}]
3743
self.ws.send(
@@ -56,7 +62,21 @@ def print_log(self) -> None:
5662

5763
def get_response(
5864
self,
59-
) -> Union[bytes, dict[str, Union[str, int, float, bool, list[Union[str, int, float, bool]], dict[str, Union[str, int, float, bool]]]], str]:
65+
) -> Union[
66+
bytes,
67+
dict[
68+
str,
69+
Union[
70+
str,
71+
int,
72+
float,
73+
bool,
74+
list[Union[str, int, float, bool]],
75+
dict[str, Union[str, int, float, bool]],
76+
],
77+
],
78+
str,
79+
]:
6080
response = self.ws.recv()
6181
if isinstance(response, bytes):
6282
return response

0 commit comments

Comments
 (0)