mirror of
https://github.com/wassname/ray.git
synced 2026-07-17 11:32:33 +08:00
Partially Use f string (#10218)
* flynt. trial 1. * Trial 1. * Addressed code review.
This commit is contained in:
+2
-2
@@ -99,8 +99,8 @@ class GlobalState:
|
||||
continue
|
||||
num_redis_shards = int(num_redis_shards)
|
||||
assert num_redis_shards >= 1, (
|
||||
"Expected at least one Redis "
|
||||
"shard, found {}.".format(num_redis_shards))
|
||||
f"Expected at least one Redis shard, found {num_redis_shards}."
|
||||
)
|
||||
|
||||
# Attempt to get all of the Redis shards.
|
||||
redis_shard_addresses = self.redis_client.lrange(
|
||||
|
||||
Reference in New Issue
Block a user