We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97d6f95 + 1c1ea5d commit b9a91a3Copy full SHA for b9a91a3
1 file changed
src/authentication/k8s.py
@@ -2,7 +2,7 @@
2
3
import os
4
from http import HTTPStatus
5
-from typing import Optional, Self, cast
+from typing import Any, Optional, Self, cast
6
7
import kubernetes.client
8
from fastapi import HTTPException, Request
@@ -204,7 +204,7 @@ def _get_cluster_id(cls) -> str:
204
custom_objects_api = cls.get_custom_objects_api()
205
# Kubernetes API always returns dict for custom objects
206
version_data = cast(
207
- dict,
+ dict[str, Any],
208
custom_objects_api.get_cluster_custom_object(
209
"config.openshift.io", "v1", "clusterversions", "version"
210
),
0 commit comments