Skip to content

Commit f0bd8d7

Browse files
committed
style: fix Black formatting
1 parent b0c2cba commit f0bd8d7

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

redbot/core/bot.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,7 @@ async def set_prefixes(self, prefixes: List[str], guild: Optional[discord.Guild]
989989
"""
990990
await self._prefix_cache.set_prefixes(guild=guild, prefixes=prefixes)
991991

992-
async def get_embed_color(
993-
self, location: discord.abc.Messageable
994-
) -> Optional[discord.Color]:
992+
async def get_embed_color(self, location: discord.abc.Messageable) -> Optional[discord.Color]:
995993
"""
996994
Get the embed color for a location. This takes into account all related settings.
997995

redbot/core/core_commands.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4110,9 +4110,7 @@ async def _set_colour(self, ctx: commands.Context, *, colour: str = None):
41104110
try:
41114111
colour = await commands.ColourConverter().convert(ctx, colour)
41124112
except commands.BadColourArgument:
4113-
return await ctx.send(
4114-
_('"{}" is not a valid colour.').format(colour)
4115-
)
4113+
return await ctx.send(_('"{}" is not a valid colour.').format(colour))
41164114
ctx.bot._color = colour
41174115
await ctx.bot._config.color.set(colour.value)
41184116
await ctx.send(_("The color has been set."))

0 commit comments

Comments
 (0)