diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24e4592c..557cf12f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-merge-conflict - id: check-toml @@ -8,7 +8,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.3 + rev: v0.4.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/safir/asyncio.py b/src/safir/asyncio.py index 53d33448..12b53338 100644 --- a/src/safir/asyncio.py +++ b/src/safir/asyncio.py @@ -123,7 +123,7 @@ async def iterator() -> AsyncIterator[T]: for item in contents[position:end]: if item is Ellipsis: return - yield item # type: ignore[misc] + yield item position = end elif contents and contents[-1] is Ellipsis: return