Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 8, 2023
1 parent ccb24e7 commit 90a2e41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion discord/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90a2e41

Please sign in to comment.