From 9489a92e32b75018d16dde72110ce050439068e1 Mon Sep 17 00:00:00 2001 From: Dorukyum <53639936+Dorukyum@users.noreply.github.com> Date: Sat, 6 Jan 2024 19:09:53 +0300 Subject: [PATCH] docs: more updates --- discord/rate_limiting.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/discord/rate_limiting.py b/discord/rate_limiting.py index dcd3039bee..2c9a86a707 100644 --- a/discord/rate_limiting.py +++ b/discord/rate_limiting.py @@ -268,9 +268,9 @@ def set_metadata( reset_after: int | None = None, ) -> None: """Set the metadata for this Bucket. - If both `remaining` and `reset_after` are set to `None` - `metadata_unknown` is set to true, a garbage state is initialized, - and all pending requests are released. + If both `remaining` and `reset_after` are set to ``None`` and + :attr:`metadata_unknown` is set to ``True``, a garbage state will + be initialized and all pending requests will be released. Parameters ---------- @@ -357,7 +357,7 @@ async def get(self, id: str) -> Bucket | None: Returns ------- - :class:`.Bucket` or `None` + Optional[:class:`.Bucket`] """ async def get_or_create(self, id: str) -> Bucket: @@ -383,7 +383,7 @@ async def temp_bucket(self, id: str) -> DynamicBucket | None: Returns ------- - :class:`.DynamicBucket` or `None` + Optional[:class:`.DynamicBucket`] """ async def push_temp_bucket(self, id: str, bucket: DynamicBucket) -> None: @@ -455,7 +455,7 @@ async def get(self, id: str) -> Bucket | None: Returns ------- - :class:`.Bucket` or `None` + Optional[:class:`.Bucket`] """ return self._buckets.get(id) @@ -491,7 +491,7 @@ async def temp_bucket(self, id: str) -> DynamicBucket | None: Returns ------- - :class:`.DynamicBucket` or `None` + Optional[:class:`.DynamicBucket`] """ return self._temp_buckets.get(id)