Skip to content

Commit 1922224

Browse files
author
Andrei Neagu
committed
refactor
1 parent bdd4560 commit 1922224

File tree

1 file changed

+3
-2
lines changed
  • services/catalog/src/simcore_service_catalog/services

1 file changed

+3
-2
lines changed

services/catalog/src/simcore_service_catalog/services/director.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import urllib.parse
55
from collections.abc import Awaitable, Callable
66
from contextlib import suppress
7-
from typing import Any, cast
7+
from typing import Any
88

99
import httpx
1010
from common_library.json_serialization import json_dumps
@@ -164,7 +164,8 @@ async def get_service_labels(
164164
response = await self.get(
165165
f"/services/{urllib.parse.quote_plus(service_key)}/{service_version}/labels"
166166
)
167-
return cast(dict[str, Any], response)
167+
assert isinstance(response, dict) # nosec
168+
return response
168169

169170

170171
async def setup_director(

0 commit comments

Comments
 (0)