diff options
| author | 2021-07-26 15:27:44 +0100 | |
|---|---|---|
| committer | 2021-07-26 15:29:11 +0100 | |
| commit | 12f3c40954db931300ea606fd03d329f16395f19 (patch) | |
| tree | 9973532b5ab903bd34e5016d46e35f781e466dac | |
| parent | Merge branch 'main' into cleanrework (diff) | |
Update _get_messages_from_channels return type
| -rw-r--r-- | bot/exts/utils/clean.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/utils/clean.py b/bot/exts/utils/clean.py index e08be79fe..529dd9ee6 100644 --- a/bot/exts/utils/clean.py +++ b/bot/exts/utils/clean.py @@ -3,7 +3,7 @@ import random import re import time from collections import defaultdict -from typing import Callable, DefaultDict, Iterable, List, Optional, Tuple +from typing import Any, Callable, DefaultDict, Iterable, List, Optional, Tuple from discord import Colour, Embed, Message, NotFound, TextChannel, User, errors from discord.ext import commands @@ -79,7 +79,7 @@ class Clean(Cog): channels: Iterable[TextChannel], to_delete: Predicate, until_message: Optional[Message] = None - ) -> DefaultDict: + ) -> tuple[defaultdict[Any, list], list]: message_mappings = defaultdict(list) message_ids = [] |