mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 22:44:59 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user