Skip to content

Commit b26eef0

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent a405ce5 commit b26eef0

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ These changes are available on the `master` branch, but have not yet been releas
108108
- Fixed support emoji aliases like `:smile:` in PartialEmoji.from_str
109109
([#2774](https://github.com/Pycord-Development/pycord/pull/2774))
110110

111-
112111
### Changed
113112

114113
- Renamed `cover` property of `ScheduledEvent` and `cover` argument of

discord/ext/bridge/core.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
Converter,
5252
Group,
5353
GuildChannelConverter,
54+
MemberConverter,
5455
RoleConverter,
5556
UserConverter,
56-
MemberConverter,
5757
)
5858
from ..commands.converter import _convert_to_bool, run_converters
5959

@@ -596,7 +596,8 @@ async def convert(self, ctx, argument):
596596
pass
597597

598598
return await UserConverter().convert(ctx, argument)
599-
599+
600+
600601
class AttachmentConverter(Converter):
601602
async def convert(self, ctx: Context, arg: str):
602603
try:
@@ -622,7 +623,7 @@ async def convert(self, ctx, arg: bool):
622623
SlashCommandOptionType.mentionable: MentionableConverter,
623624
SlashCommandOptionType.number: float,
624625
SlashCommandOptionType.attachment: AttachmentConverter,
625-
discord.Member: MemberConverter
626+
discord.Member: MemberConverter,
626627
}
627628

628629

@@ -631,7 +632,6 @@ class BridgeOption(Option, Converter):
631632
command option and a prefixed command argument for bridge commands.
632633
"""
633634

634-
635635
def __init__(self, input_type, *args, **kwargs):
636636
self.converter = kwargs.pop("converter", None)
637637
super().__init__(input_type, *args, **kwargs)
@@ -655,7 +655,6 @@ async def convert(self, ctx, argument: str) -> Any:
655655
else:
656656
raise TypeError(f"Invalid converter: {converter}")
657657

658-
659658
if self.choices:
660659
choices_names: list[str | int | float] = [
661660
choice.name for choice in self.choices

0 commit comments

Comments
 (0)