Skip to content

Commit 176ddb6

Browse files
Paillat-devDorukyum
authored andcommitted
fix: inverted type hints in CheckAnyFailure (#2502)
1 parent ed1f73c commit 176ddb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/ext/commands/errors.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ class CheckAnyFailure(CheckFailure):
212212
"""
213213

214214
def __init__(
215-
self, checks: list[CheckFailure], errors: list[Callable[[Context], bool]]
215+
self, checks: list[Callable[[Context], bool]], errors: list[CheckFailure]
216216
) -> None:
217-
self.checks: list[CheckFailure] = checks
218-
self.errors: list[Callable[[Context], bool]] = errors
217+
self.checks: list[Callable[[Context], bool]] = checks
218+
self.errors: list[CheckFailure] = errors
219219
super().__init__("You do not have permission to run this command.")
220220

221221

0 commit comments

Comments
 (0)