fix: bump lockfiles (#31923)

* bump lockfiles after upgrading ruff
* resolve resulting linting fixes
This commit is contained in:
Mason Daugherty
2025-07-08 13:27:55 -04:00
committed by GitHub
parent e7f1ceee67
commit 4d9eefecab
20 changed files with 5643 additions and 5631 deletions

View File

@@ -5,4 +5,4 @@ from langchain_huggingface.chat_models.huggingface import ( # type: ignore[impo
_convert_dict_to_message,
)
__all__ = ["ChatHuggingFace", "_convert_dict_to_message", "TGI_MESSAGE", "TGI_RESPONSE"]
__all__ = ["TGI_MESSAGE", "TGI_RESPONSE", "ChatHuggingFace", "_convert_dict_to_message"]

View File

@@ -552,7 +552,7 @@ class ChatHuggingFace(BaseChatModel):
messages: list[BaseMessage],
stop: Optional[list[str]] = None,
run_manager: Optional[CallbackManagerForLLMRun] = None,
stream: Optional[bool] = None,
stream: Optional[bool] = None, # noqa: FBT001
**kwargs: Any,
) -> ChatResult:
should_stream = stream if stream is not None else self.streaming
@@ -593,7 +593,7 @@ class ChatHuggingFace(BaseChatModel):
messages: list[BaseMessage],
stop: Optional[list[str]] = None,
run_manager: Optional[AsyncCallbackManagerForLLMRun] = None,
stream: Optional[bool] = None,
stream: Optional[bool] = None, # noqa: FBT001
**kwargs: Any,
) -> ChatResult:
if _is_huggingface_textgen_inference(self.llm):