mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 04:55:14 +00:00
community[patch]: upgrade to recent version of mypy (#21616)
This PR upgrades community to a recent version of mypy. It inserts type: ignore on all existing failures.
This commit is contained in:
@@ -69,7 +69,7 @@ def _convert_delta_to_message_chunk(_dict: Mapping[str, Any]) -> BaseMessageChun
|
||||
elif role == "assistant":
|
||||
return AIMessageChunk(content=content)
|
||||
else:
|
||||
return ChatMessageChunk(content=content, role=role)
|
||||
return ChatMessageChunk(content=content, role=role) # type: ignore[arg-type]
|
||||
|
||||
|
||||
class ChatCoze(BaseChatModel):
|
||||
|
Reference in New Issue
Block a user