Skip to content

Commit ef01c15

Browse files
committed
Use Optional instead of Union
1 parent 0b10ef9 commit ef01c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sky/skylet/providers/kubernetes/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Tuple, Optional, Union
1+
from typing import List, Tuple, Optional
22

33
from sky import status_lib
44
from sky.adaptors import kubernetes
@@ -68,7 +68,7 @@ def get_cluster_status(cluster_name: str,
6868
return cluster_status
6969

7070

71-
def get_current_kube_config_context() -> Union[str, None]:
71+
def get_current_kube_config_context() -> Optional[str]:
7272
"""
7373
Get the current kubernetes context from the kubeconfig file
7474

0 commit comments

Comments
 (0)