Remove caching from AutoShardedClient.shards

This commit is contained in:
Rapptz
2020-09-24 02:17:55 -04:00
parent e865d36341
commit 9d10f9e091
+1 -1
View File
@@ -328,7 +328,7 @@ class AutoShardedClient(Client):
else: else:
return ShardInfo(parent, self.shard_count) return ShardInfo(parent, self.shard_count)
@utils.cached_property @property
def shards(self): def shards(self):
"""Mapping[int, :class:`ShardInfo`]: Returns a mapping of shard IDs to their respective info object.""" """Mapping[int, :class:`ShardInfo`]: Returns a mapping of shard IDs to their respective info object."""
return { shard_id: ShardInfo(parent, self.shard_count) for shard_id, parent in self.__shards.items() } return { shard_id: ShardInfo(parent, self.shard_count) for shard_id, parent in self.__shards.items() }