We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dfe516 commit 2d28557Copy full SHA for 2d28557
services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/director_v0/_public_client.py
@@ -19,15 +19,15 @@
19
logger = logging.getLogger(__name__)
20
21
22
-def _unenvelope_or_raise_error(resp: httpx.Response) -> list[Any] | dict[str, Any]:
+def _unenvelope_or_raise_error(resp: httpx.Response) -> dict | list:
23
"""
24
Director responses are enveloped
25
If successful response, we un-envelop it and return data as a dict
26
If error, is detected raise an ValueError
27
28
body = resp.json()
29
if "data" in body:
30
- return body["data"]
+ return body["data"] # type: ignore[no-any-return]
31
32
msg = f"Unexpected, data was not returned: {body=}"
33
raise ValueError(msg)
0 commit comments