Skip to content

Commit b9a91a3

Browse files
authored
Merge pull request lightspeed-core#1764 from tisnik/lcore-2140-proper-type-hint-nit
LCORE-2140: Proper type hint (nit)
2 parents 97d6f95 + 1c1ea5d commit b9a91a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/authentication/k8s.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import os
44
from http import HTTPStatus
5-
from typing import Optional, Self, cast
5+
from typing import Any, Optional, Self, cast
66

77
import kubernetes.client
88
from fastapi import HTTPException, Request
@@ -204,7 +204,7 @@ def _get_cluster_id(cls) -> str:
204204
custom_objects_api = cls.get_custom_objects_api()
205205
# Kubernetes API always returns dict for custom objects
206206
version_data = cast(
207-
dict,
207+
dict[str, Any],
208208
custom_objects_api.get_cluster_custom_object(
209209
"config.openshift.io", "v1", "clusterversions", "version"
210210
),

0 commit comments

Comments
 (0)