Skip to content

Commit 2d28557

Browse files
author
Andrei Neagu
committed
mypy
1 parent 5dfe516 commit 2d28557

File tree

1 file changed

+2
-2
lines changed
  • services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/director_v0

1 file changed

+2
-2
lines changed

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/services/director_v0/_public_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
logger = logging.getLogger(__name__)
2020

2121

22-
def _unenvelope_or_raise_error(resp: httpx.Response) -> list[Any] | dict[str, Any]:
22+
def _unenvelope_or_raise_error(resp: httpx.Response) -> dict | list:
2323
"""
2424
Director responses are enveloped
2525
If successful response, we un-envelop it and return data as a dict
2626
If error, is detected raise an ValueError
2727
"""
2828
body = resp.json()
2929
if "data" in body:
30-
return body["data"]
30+
return body["data"] # type: ignore[no-any-return]
3131

3232
msg = f"Unexpected, data was not returned: {body=}"
3333
raise ValueError(msg)

0 commit comments

Comments
 (0)