Upgrade ruff
This commit is contained in:
parent
9c5058d279
commit
158b5417c4
2 changed files with 4 additions and 4 deletions
|
|
@ -6,13 +6,13 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.3.0
|
rev: v4.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.0.132
|
rev: v0.0.149
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ def sync_to_async_iterator(
|
||||||
def async_next(iterator: Iterator[R]) -> R:
|
def async_next(iterator: Iterator[R]) -> R:
|
||||||
try:
|
try:
|
||||||
return next(iterator)
|
return next(iterator)
|
||||||
except StopIteration:
|
except StopIteration as e:
|
||||||
raise StopAsyncIteration()
|
raise StopAsyncIteration() from e
|
||||||
|
|
||||||
@sync_to_async
|
@sync_to_async
|
||||||
def async_iterator_func(*args: Any, **kwargs: Any) -> Generator[R, None, None]:
|
def async_iterator_func(*args: Any, **kwargs: Any) -> Generator[R, None, None]:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue