mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
[V3] Update black version and reformat (#1745)
* Update black version and reformat * Pin black in extras_require
This commit is contained in:
@@ -3,7 +3,6 @@ from typing import Tuple
|
||||
|
||||
|
||||
class CogOrCommand(commands.Converter):
|
||||
|
||||
async def convert(self, ctx: commands.Context, arg: str) -> Tuple[str]:
|
||||
ret = ctx.bot.get_cog(arg)
|
||||
if ret:
|
||||
@@ -16,7 +15,6 @@ class CogOrCommand(commands.Converter):
|
||||
|
||||
|
||||
class RuleType(commands.Converter):
|
||||
|
||||
async def convert(self, ctx: commands.Context, arg: str) -> str:
|
||||
if arg.lower() in ("allow", "whitelist", "allowed"):
|
||||
return "allow"
|
||||
|
||||
Reference in New Issue
Block a user