Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 3a3123e

Browse files
authored
Fix lint (#277)
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
1 parent 9fc9a9e commit 3a3123e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

xgboost_ray/data_sources/_distributed.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ def get_actor_rank_ips(actors: Sequence[ActorHandle]) -> Dict[int, str]:
1111
"""Get a dict mapping from actor ranks to their IPs"""
1212
no_obj = ray.put(None)
1313
# Build a dict mapping actor ranks to their IP addresses
14-
actor_rank_ips: Dict[int, str] = {
15-
rank: ip
16-
for rank, ip in enumerate(
14+
actor_rank_ips: Dict[int, str] = dict(
15+
enumerate(
1716
ray.get([
1817
actor.ip.remote() if actor is not None else no_obj
1918
for actor in actors
20-
]))
21-
}
19+
])))
2220
return actor_rank_ips
2321

2422

0 commit comments

Comments
 (0)