refactor: enforce BasedPyright strict type checking (#5158)
This commit is contained in:
1 parent
e703481755
commit
757ad9c764
166 files changed
+4728
-2621
No files matched your search
@@ -8,6 +8,7 @@ from dataclasses import dataclass, field
|
||||
from typing import TYPE_CHECKING, Any, Awaitable, Callable
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from nanobot.agent.loop import AgentLoop
|
||||
from nanobot.bus.events import InboundMessage, OutboundMessage
|
||||
from nanobot.session.manager import Session
|
||||
from nanobot.utils.llm_runtime import LLMRuntime
|
||||
@@ -44,7 +45,7 @@ class CommandContext:
|
||||
key: str
|
||||
raw: str
|
||||
args: str = ""
|
||||
loop: Any = None
|
||||
loop: AgentLoop = field(kw_only=True)
|
||||
runtime: LLMRuntime | None = None
|
||||
is_user_turn: bool = False
|
||||
turn_scopes: list[AbstractContextManager[Any]] = field(default_factory=list)
|
||||
|
||||
Reference in new issue
Block a user