mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 02:37:57 -05:00
[V3] Update code standards (black code format pass) (#1650)
* ran black: code formatter against `redbot/` with `-l 99` * badge
This commit is contained in:
@@ -20,7 +20,7 @@ class Command(commands.Command):
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self._help_override = kwargs.pop('help_override', None)
|
||||
self._help_override = kwargs.pop("help_override", None)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.translator = kwargs.pop("i18n", None)
|
||||
|
||||
@@ -40,7 +40,7 @@ class Command(commands.Command):
|
||||
translator = self.translator
|
||||
command_doc = self.callback.__doc__
|
||||
if command_doc is None:
|
||||
return ''
|
||||
return ""
|
||||
return inspect.cleandoc(translator(command_doc))
|
||||
|
||||
@help.setter
|
||||
@@ -60,6 +60,7 @@ class Group(Command, commands.Group):
|
||||
|
||||
# decorators
|
||||
|
||||
|
||||
def command(name=None, cls=Command, **attrs):
|
||||
"""A decorator which transforms an async function into a `Command`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user