aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/utils/cooldown.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-19 21:35:56 +0000
committerGravatar Chris Lovering <[email protected]>2024-03-04 12:35:02 +0000
commitccd94c90d33b7aee85117078576684fab5055ce5 (patch)
treef54d2e3c71f12fe4613026d5a35ceae4dea4bd5a /pydis_core/utils/cooldown.py
parentruff lint fix: Run remaining auto-fixable rules (diff)
ruff lint fix: Manual non-breaking changes
Diffstat (limited to 'pydis_core/utils/cooldown.py')
-rw-r--r--pydis_core/utils/cooldown.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_core/utils/cooldown.py b/pydis_core/utils/cooldown.py
index d3f278ab..90711c93 100644
--- a/pydis_core/utils/cooldown.py
+++ b/pydis_core/utils/cooldown.py
@@ -83,7 +83,7 @@ class _SeparatedArguments:
for item in call_arguments:
try:
hash(item)
- except TypeError:
+ except TypeError: # noqa: PERF203
non_hashable.append(item)
else:
hashable.append(item)
@@ -152,7 +152,7 @@ class _CommandCooldownManager:
await asyncio.sleep(initial_delay)
while True:
await asyncio.sleep(60 * 60)
- weak_self()._delete_stale_items()
+ weak_self()._delete_stale_items() # noqa: SLF001
def _delete_stale_items(self) -> None:
"""Remove expired items from internal collections."""