Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 8e4ff7b

Browse files
🚨 auto fix by pre-commit-ci
1 parent a9f5106 commit 8e4ff7b

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

nb_cli_plugin_rplugin/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ async def _choose_specified_page():
8989
_("Page to go({page}/{all_pages}):").format(
9090
page=page, all_pages=all_pages
9191
),
92-
validator=lambda x: 1 <= int(x) <= all_pages
93-
if x.isdigit()
94-
else False,
92+
validator=lambda x: (
93+
1 <= int(x) <= all_pages if x.isdigit() else False
94+
),
9595
)
9696
page = int(_page)
9797

nb_cli_plugin_rplugin/meta.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ class PyPIPackage(BaseModel):
5656

5757
if TYPE_CHECKING:
5858

59-
async def get_plugins() -> List[Plugin]:
60-
...
59+
async def get_plugins() -> List[Plugin]: ...
6160

6261
else:
6362

@@ -120,8 +119,7 @@ async def get_github_statistics(repo: str) -> Repo:
120119

121120
if TYPE_CHECKING:
122121

123-
async def get_pypi_meta(package: str) -> PyPIPackage:
124-
...
122+
async def get_pypi_meta(package: str) -> PyPIPackage: ...
125123

126124
else:
127125

0 commit comments

Comments
 (0)