Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/ghoshell_moss/core/concepts/shell.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import contextlib
from abc import ABC, abstractmethod
from collections.abc import AsyncIterable
from collections.abc import AsyncIterable, AsyncIterator
from typing import Literal, Optional

from ghoshell_container import IoCContainer
Expand Down Expand Up @@ -164,7 +164,7 @@ async def interpreter_in_ctx(
*,
stream_id: Optional[str] = None,
channel_metas: Optional[dict[ChannelFullPath, ChannelMeta]] = None,
) -> Interpreter:
) -> AsyncIterator[Interpreter]:
interpreter = await self.interpreter(kind=kind, stream_id=stream_id, channel_metas=channel_metas)
async with interpreter:
yield interpreter
Expand Down
Loading