Format with black
This commit is contained in:
parent
aacfe10e21
commit
1359714c3c
@ -177,7 +177,7 @@ _base_table.update((chr(i), None) for i in range(32))
|
|||||||
_translation_table = str.maketrans(_base_table)
|
_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):
|
if isinstance(name, Path):
|
||||||
return name
|
return name
|
||||||
|
|
||||||
@ -317,7 +317,9 @@ def add_newcog_args(subparser) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def parse_args() -> 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.add_argument("-v", "--version", action="store_true", help="shows the library version")
|
||||||
parser.set_defaults(func=core)
|
parser.set_defaults(func=core)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user