diff options
author | 2021-09-03 16:28:04 +0100 | |
---|---|---|
committer | 2021-09-03 16:28:04 +0100 | |
commit | cd7060835b5b0d150c6e91d75bc3227ee43db0ba (patch) | |
tree | 4264ddbb25e86184255574cfd0e8fa9bb11d7bcb /bot/utils/checks.py | |
parent | Handle status not found with 404 picture (diff) | |
parent | Merge pull request #839 from python-discord/android-codeblock-fix (diff) |
Merge branch 'main' into teapot-support
Diffstat (limited to 'bot/utils/checks.py')
-rw-r--r-- | bot/utils/checks.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/utils/checks.py b/bot/utils/checks.py index 438ec750..612d1ed6 100644 --- a/bot/utils/checks.py +++ b/bot/utils/checks.py @@ -1,6 +1,7 @@ import datetime import logging -from typing import Callable, Container, Iterable, Optional +from collections.abc import Container, Iterable +from typing import Callable, Optional from discord.ext.commands import ( BucketType, @@ -21,7 +22,7 @@ log = logging.getLogger(__name__) class InWhitelistCheckFailure(CheckFailure): """Raised when the `in_whitelist` check fails.""" - def __init__(self, redirect_channel: Optional[int]) -> None: + def __init__(self, redirect_channel: Optional[int]): self.redirect_channel = redirect_channel if redirect_channel: |