Skip to content

Commit 9c09f77

Browse files
committed
[patch] Fix type hints
1 parent 638f68c commit 9c09f77

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/mas/devops/mas/suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def isAirgapInstall(dynClient: DynamicClient, checkICSP: bool = False) -> bool:
5454
return len(masIDMS.items) + len(aiserviceIDMS.items) > 0
5555

5656

57-
def getDefaultStorageClasses(dynClient: DynamicClient) -> dict:
57+
def getDefaultStorageClasses(dynClient: DynamicClient) -> SimpleNamespace:
5858
"""
5959
Detect and return default storage classes for the cluster environment.
6060

src/mas/devops/ocp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def getConsoleURL(dynClient: DynamicClient) -> str:
318318
return f"https://{consoleRoute.spec.host}"
319319

320320

321-
def getNodes(dynClient: DynamicClient) -> str:
321+
def getNodes(dynClient: DynamicClient) -> dict:
322322
"""
323323
Get all nodes in the cluster.
324324
@@ -336,7 +336,7 @@ def getNodes(dynClient: DynamicClient) -> str:
336336
return nodes
337337

338338

339-
def getStorageClass(dynClient: DynamicClient, name: str) -> str:
339+
def getStorageClass(dynClient: DynamicClient, name: str) -> dict | None:
340340
"""
341341
Get a specific StorageClass by name.
342342

0 commit comments

Comments
 (0)