Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#508)
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>
Co-authored-by: Jacob Tomlinson <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jacobtomlinson authored Oct 24, 2024
1 parent 44e74c4 commit 2d522e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- --target-version=py38
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.6.9'
rev: 'v0.7.0'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -26,7 +26,7 @@ repos:
- --no-extra-eol
- --detect-license-in-X-top-lines=5
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.2'
rev: 'v1.12.1'
hooks:
- id: mypy
exclude: "examples|venv|ci|docs|conftest.py"
Expand Down
3 changes: 1 addition & 2 deletions kr8s/_async_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ def run_sync(

@wraps(coro)
def run_gen_inner(*args: P.args, **kwargs: P.kwargs) -> Generator:
wrapped = partial(coro, *args, **kwargs)
return iter_over_async(wrapped())
return iter_over_async(coro(*args, **kwargs))

return run_gen_inner

Expand Down

0 comments on commit 2d522e9

Please sign in to comment.