refactor: enforce BasedPyright strict type checking (#5158)

This commit is contained in:
chengyongru
2026-07-29 21:37:11 +08:00
committed by GitHub
parent e703481755
commit 757ad9c764
166 changed files with 4728 additions and 2621 deletions
+5 -3
View File
@@ -2,6 +2,8 @@
from __future__ import annotations
from typing import Any
from nanobot.providers.base import LLMProvider, LLMResponse
@@ -14,13 +16,13 @@ class UnconfiguredProvider(LLMProvider):
async def chat(
self,
messages: list[dict],
tools: list[dict] | None = None,
messages: list[dict[str, Any]],
tools: list[dict[str, Any]] | None = None,
model: str | None = None,
max_tokens: int = 4096,
temperature: float = 0.7,
reasoning_effort: str | None = None,
tool_choice: str | dict | None = None,
tool_choice: str | dict[str, Any] | None = None,
) -> LLMResponse:
return LLMResponse(
content=(