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 bdd4560 commit 1922224Copy full SHA for 1922224
services/catalog/src/simcore_service_catalog/services/director.py
@@ -4,7 +4,7 @@
4
import urllib.parse
5
from collections.abc import Awaitable, Callable
6
from contextlib import suppress
7
-from typing import Any, cast
+from typing import Any
8
9
import httpx
10
from common_library.json_serialization import json_dumps
@@ -164,7 +164,8 @@ async def get_service_labels(
164
response = await self.get(
165
f"/services/{urllib.parse.quote_plus(service_key)}/{service_version}/labels"
166
)
167
- return cast(dict[str, Any], response)
+ assert isinstance(response, dict) # nosec
168
+ return response
169
170
171
async def setup_director(
0 commit comments