Skip to content

Commit aff2acd

Browse files
committed
fix: formatting
1 parent 72b68ef commit aff2acd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/apyanki/anki.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,11 @@ def rename_model(self, old_model_name: str, new_model_name: str) -> None:
331331
def list_tags(self, sort_by_count: bool = False, simple: bool = False) -> None:
332332
"""List all tags"""
333333
if sort_by_count:
334+
334335
def sorter(x: tuple[str, int]) -> str | int:
335336
return x[1]
336337
else:
338+
337339
def sorter(x: tuple[str, int]) -> str | int:
338340
return x[0]
339341

src/apyanki/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,9 +642,7 @@ def sync() -> None:
642642
@click.option(
643643
"-c", "--sort-by-count", is_flag=True, help="When listing tags, sort by note count"
644644
)
645-
@click.option(
646-
"-s", "--simple", is_flag=True, help="Only list available tags"
647-
)
645+
@click.option("-s", "--simple", is_flag=True, help="Only list available tags")
648646
@click.option(
649647
"-p",
650648
"--purge",

0 commit comments

Comments
 (0)