community: fix lint (#23611)

This commit is contained in:
ccurme
2024-06-27 18:12:16 -04:00
committed by GitHub
parent ef0593db58
commit adf2dc13de
2 changed files with 5 additions and 5 deletions

View File

@@ -213,7 +213,7 @@ class ChatMaritalk(BaseChatModel):
if response.status_code == 200:
return response.json().get("answer", "No answer found")
else:
raise MaritalkHTTPError(response)
raise MaritalkHTTPError(response) # type: ignore[arg-type]
except ImportError:
raise ImportError(
@@ -301,7 +301,7 @@ class ChatMaritalk(BaseChatModel):
async with client.stream(
"POST",
"https://chat.maritaca.ai/api/chat/inference",
data=json.dumps(data),
data=json.dumps(data), # type: ignore[arg-type]
headers=headers,
timeout=None,
) as response:
@@ -323,7 +323,7 @@ class ChatMaritalk(BaseChatModel):
yield chunk
else:
raise MaritalkHTTPError(response)
raise MaritalkHTTPError(response) # type: ignore[arg-type]
except ImportError:
raise ImportError(