Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
Signed-off-by: Hao Chen <chenh1024@gmail.com>
  • Loading branch information
raulchen committed Dec 21, 2023
1 parent 893a830 commit 087f5b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ray/data/_internal/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
TYPE_CHECKING,
Any,
Callable,
Dict,
Iterable,
Iterator,
List,
Expand Down Expand Up @@ -60,7 +61,7 @@
CLUSTER_RESOURCES_FETCH_INTERVAL_SECONDS = 10


def cluster_resources():
def cluster_resources() -> Dict[str, float]:
"""Fetch Ray cluster resources with cache."""
global cached_cluster_resources
global cluster_resources_last_fetch_time
Expand Down

0 comments on commit 087f5b4

Please sign in to comment.