From aecc1e6f6f1df012add3ce394496b01e776bbfdf Mon Sep 17 00:00:00 2001 From: Xithrius Date: Wed, 1 Sep 2021 18:44:24 -0700 Subject: Removed None return annotation for any __init__ --- bot/utils/checks.py | 2 +- bot/utils/randomization.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/utils') diff --git a/bot/utils/checks.py b/bot/utils/checks.py index d5c06728..612d1ed6 100644 --- a/bot/utils/checks.py +++ b/bot/utils/checks.py @@ -22,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: diff --git a/bot/utils/randomization.py b/bot/utils/randomization.py index 3360ef44..c9eabbd2 100644 --- a/bot/utils/randomization.py +++ b/bot/utils/randomization.py @@ -11,7 +11,7 @@ class RandomCycle: The iterable is reshuffled after each full cycle. """ - def __init__(self, iterable: Iterable) -> None: + def __init__(self, iterable: Iterable): self.iterable = list(iterable) self.index = itertools.cycle(range(len(iterable))) -- cgit v1.2.3