Format with black

This commit is contained in:
Sengolda 2021-10-18 12:23:27 +05:30
parent aacfe10e21
commit 1359714c3c

View File

@ -177,7 +177,7 @@ _base_table.update((chr(i), None) for i in range(32))
_translation_table = str.maketrans(_base_table)
def to_path(parser: argparse.ArgumentParser, name: str, *, replace_spaces: bool =False) -> Path:
def to_path(parser: argparse.ArgumentParser, name: str, *, replace_spaces: bool = False) -> Path:
if isinstance(name, Path):
return name
@ -317,7 +317,9 @@ def add_newcog_args(subparser) -> None:
def parse_args() -> None:
parser: argparse.ArgumentParser = argparse.ArgumentParser(prog="discord", description="Tools for helping with discord.py")
parser: argparse.ArgumentParser = argparse.ArgumentParser(
prog="discord", description="Tools for helping with discord.py"
)
parser.add_argument("-v", "--version", action="store_true", help="shows the library version")
parser.set_defaults(func=core)