Skip to content

Commit

Permalink
⬆️ auto update by pre-commit hooks (#119)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 6, 2024
1 parent 6577900 commit 0ff6d06
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ci:
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.9
rev: v0.2.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -20,7 +20,7 @@ repos:
stages: [commit]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
stages: [commit]
Expand Down
12 changes: 4 additions & 8 deletions nb_cli/handlers/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:

if TYPE_CHECKING:

async def _get_env_python() -> str:
...
async def _get_env_python() -> str: ...

else:

Expand Down Expand Up @@ -106,8 +105,7 @@ async def get_default_python(cwd: Optional[Path] = None) -> str:

async def get_python_version(
python_path: Optional[str] = None, cwd: Optional[Path] = None
) -> Dict[str, int]:
...
) -> Dict[str, int]: ...

else:

Expand Down Expand Up @@ -156,8 +154,7 @@ async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:

async def get_nonebot_version(
python_path: Optional[str] = None, cwd: Optional[Path] = None
) -> str:
...
) -> str: ...

else:

Expand Down Expand Up @@ -202,8 +199,7 @@ async def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:

async def get_pip_version(
python_path: Optional[str] = None, cwd: Optional[Path] = None
) -> str:
...
) -> str: ...

else:

Expand Down
12 changes: 4 additions & 8 deletions nb_cli/handlers/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,17 @@
if TYPE_CHECKING:

@overload
async def load_module_data(module_type: Literal["adapter"]) -> List[Adapter]:
...
async def load_module_data(module_type: Literal["adapter"]) -> List[Adapter]: ...

@overload
async def load_module_data(module_type: Literal["plugin"]) -> List[Plugin]:
...
async def load_module_data(module_type: Literal["plugin"]) -> List[Plugin]: ...

@overload
async def load_module_data(module_type: Literal["driver"]) -> List[Driver]:
...
async def load_module_data(module_type: Literal["driver"]) -> List[Driver]: ...

async def load_module_data(
module_type: Literal["adapter", "plugin", "driver"]
) -> Union[List[Adapter], List[Plugin], List[Driver]]:
...
) -> Union[List[Adapter], List[Plugin], List[Driver]]: ...

else:

Expand Down

0 comments on commit 0ff6d06

Please sign in to comment.