From 90a2e413af0324420dcc481777b211e39cb58a08 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 Nov 2023 11:33:10 +0000 Subject: [PATCH] style(pre-commit): auto fixes from pre-commit.com hooks --- CHANGELOG.md | 3 ++- discord/flags.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91c0e9201a..63e0a3f6bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -180,7 +180,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2192](https://github.com/Pycord-Development/pycord/pull/2192)) - Fixed `DMChannel.recipient` being `None` and consequently `User.dm_channel` also being `None`. ([#2219](https://github.com/Pycord-Development/pycord/pull/2219)) -- Fixed `discord.Intents.all()` returning the wrong value. ([#2195](https://github.com/Pycord-Development/pycord/issues/2195)) +- Fixed `discord.Intents.all()` returning the wrong value. + ([#2195](https://github.com/Pycord-Development/pycord/issues/2195)) ## [2.4.1] - 2023-03-20 diff --git a/discord/flags.py b/discord/flags.py index 8f64135f1a..994d53072c 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -636,7 +636,9 @@ def __init__(self, **kwargs: bool): @classmethod def all(cls: type[Intents]) -> Intents: """A factory method that creates a :class:`Intents` with everything enabled.""" - shifts = list(dict.fromkeys([flag.bit_length() - 1 for flag in cls.VALID_FLAGS.values()])) + shifts = list( + dict.fromkeys([flag.bit_length() - 1 for flag in cls.VALID_FLAGS.values()]) + ) value = sum(1 << shift for shift in shifts) self = cls.__new__(cls)