From 176ddb6c29d899d6770222e8b6229a5eca450b23 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 19 Jul 2024 20:47:18 +0200 Subject: [PATCH] fix: inverted type hints in `CheckAnyFailure` (#2502) --- discord/ext/commands/errors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py index c9174054d8..c768fd7c00 100644 --- a/discord/ext/commands/errors.py +++ b/discord/ext/commands/errors.py @@ -212,10 +212,10 @@ class CheckAnyFailure(CheckFailure): """ def __init__( - self, checks: list[CheckFailure], errors: list[Callable[[Context], bool]] + self, checks: list[Callable[[Context], bool]], errors: list[CheckFailure] ) -> None: - self.checks: list[CheckFailure] = checks - self.errors: list[Callable[[Context], bool]] = errors + self.checks: list[Callable[[Context], bool]] = checks + self.errors: list[CheckFailure] = errors super().__init__("You do not have permission to run this command.")