From 2e9dfb3e12cf4330b1d6eea66f4ec912f55e5a3b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 4 Aug 2022 08:17:07 -0400 Subject: [PATCH] Fix various a -> an typos across the library Closes #8301, #8287 --- discord/ext/commands/core.py | 2 +- discord/flags.py | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index b980ac162..ae93e3630 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -406,7 +406,7 @@ class Command(_BaseCommand, Generic[CogT, P, T]): elif isinstance(cooldown, CooldownMapping): buckets: CooldownMapping[Context[Any]] = cooldown else: - raise TypeError("Cooldown must be a an instance of CooldownMapping or None.") + raise TypeError("Cooldown must be an instance of CooldownMapping or None.") self._buckets: CooldownMapping[Context[Any]] = buckets try: diff --git a/discord/flags.py b/discord/flags.py index 748b71976..64d7a7c8b 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -1082,19 +1082,19 @@ class ApplicationFlags(BaseFlags): Checks if two ApplicationFlags are not equal. .. describe:: x | y, x |= y - Returns a ApplicationFlags instance with all enabled flags from + Returns an ApplicationFlags instance with all enabled flags from both x and y. .. describe:: x & y, x &= y - Returns a ApplicationFlags instance with only flags enabled on + Returns an ApplicationFlags instance with only flags enabled on both x and y. .. describe:: x ^ y, x ^= y - Returns a ApplicationFlags instance with only flags enabled on + Returns an ApplicationFlags instance with only flags enabled on only one of x or y, not on both. .. describe:: ~x - Returns a ApplicationFlags instance with all flags inverted from x. + Returns an ApplicationFlags instance with all flags inverted from x. .. describe:: hash(x) Return the flag's hash. @@ -2176,19 +2176,19 @@ class AutoModPresets(ArrayFlags): Checks if two AutoModPresets flags are not equal. .. describe:: x | y, x |= y - Returns a AutoModPresets instance with all enabled flags from + Returns an AutoModPresets instance with all enabled flags from both x and y. .. describe:: x & y, x &= y - Returns a AutoModPresets instance with only flags enabled on + Returns an AutoModPresets instance with only flags enabled on both x and y. .. describe:: x ^ y, x ^= y - Returns a AutoModPresets instance with only flags enabled on + Returns an AutoModPresets instance with only flags enabled on only one of x or y, not on both. .. describe:: ~x - Returns a AutoModPresets instance with all flags inverted from x. + Returns an AutoModPresets instance with all flags inverted from x. .. describe:: hash(x) Return the flag's hash.