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_inject.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import collections.abc
import contextlib
import contextvars
import typing
Expand All @@ -20,7 +21,7 @@


@contextlib.contextmanager
def _rpc_child() -> typing.Iterator[Container]:
def _rpc_child() -> collections.abc.Generator[Container]:
root = Container(groups=[Dependencies])
root.open() # caller-owned root; never closed here (gRPC has no root-lifecycle hook)
child = root.build_child_container(scope=Scope.REQUEST)
Expand Down
Loading