ci/lint: replace dead type:ignore with casts and clean async gen

Drop ignored # type: ignore comments (basedpyright skips them); type
tomlkit tables via cast; empty stream without reportUnreachable.
This commit is contained in:
2026-07-14 18:08:22 +08:00
parent b72a9a8c1c
commit 770e239d27
2 changed files with 21 additions and 20 deletions
+3 -3
View File
@@ -63,9 +63,9 @@ class ScriptedClient:
return self._responses.pop(0)
async def _empty_stream(self) -> AsyncIterator[ChatCompletionChunk]:
if False: # pyright: ignore[reportUnreachable]
yield # type: ignore[misc]
return
empty: list[ChatCompletionChunk] = []
for chunk in empty:
yield chunk
def _response(message: AssistantChatMessage) -> ChatCompletionResponse: