aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-29 15:38:20 +0200
committerGravatar Leon Sandøy <[email protected]>2020-07-29 15:38:20 +0200
commite93cdca80026704d540c87e36a56ce059e8d5499 (patch)
tree4de62e076fc709bccb10b2e03eacdc13cdef8a2f
parentFix imports in converters.py (diff)
Fix a bad type annotation.
-rw-r--r--bot/bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/bot.py b/bot/bot.py
index 203b35ba0..5deb986ec 100644
--- a/bot/bot.py
+++ b/bot/bot.py
@@ -3,7 +3,7 @@ import logging
import socket
import warnings
from collections import defaultdict
-from typing import Any, Dict, Optional
+from typing import Dict, Optional
import aiohttp
import aioredis
@@ -165,7 +165,7 @@ class Bot(commands.Bot):
self.redis_ready.clear()
await self.redis_session.wait_closed()
- def insert_item_into_filter_list_cache(self, item: Dict[Any]) -> None:
+ def insert_item_into_filter_list_cache(self, item: Dict[str, str]) -> None:
"""Add an item to the bots filter_list_cache."""
type_ = item["type"]
allowed = item["allowed"]