Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
import collections.abc
import contextlib
import typing
import uuid
Expand Down Expand Up @@ -439,7 +440,7 @@ async def handler(msg: dict[str, int]) -> None:
processed.append(msg)

@contextlib.asynccontextmanager
async def lifespan(_context: ContextRepo) -> typing.AsyncIterator[None]:
async def lifespan(_context: ContextRepo) -> collections.abc.AsyncGenerator[None]:
# AsgiFastStream injects its own app-level context, which is separate from
# broker.context. Use broker.context explicitly so the middleware can find
# the handler via self.context.
Expand Down
Loading