From fee13a0ec0b40a1b7cbdf011568b8c37f5f7e636 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Wed, 3 Jan 2024 17:12:04 -0500 Subject: [PATCH] fmt --- libs/langchain/langchain/__init__.py | 7 +++++-- libs/langchain/langchain/chat_models/__init__.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/langchain/langchain/__init__.py b/libs/langchain/langchain/__init__.py index f884b9d049499..4e2f0a4d80d2d 100644 --- a/libs/langchain/langchain/__init__.py +++ b/libs/langchain/langchain/__init__.py @@ -173,7 +173,9 @@ def __getattr__(name: str) -> Any: elif name == "HuggingFaceTextGenInference": from langchain_community.llms import HuggingFaceTextGenInference - _warn_on_import(name, replacement="langchain_community.llms.HuggingFaceTextGenInference") + _warn_on_import( + name, replacement="langchain_community.llms.HuggingFaceTextGenInference" + ) return HuggingFaceTextGenInference elif name == "LlamaCpp": @@ -228,7 +230,8 @@ def __getattr__(name: str) -> Any: from langchain_community.llms.huggingface_pipeline import HuggingFacePipeline _warn_on_import( - name, replacement="langchain_community.llms.huggingface_pipeline.HuggingFacePipeline" + name, + replacement="langchain_community.llms.huggingface_pipeline.HuggingFacePipeline", ) return HuggingFacePipeline diff --git a/libs/langchain/langchain/chat_models/__init__.py b/libs/langchain/langchain/chat_models/__init__.py index 7dff14668ece3..92dcf677c3037 100644 --- a/libs/langchain/langchain/chat_models/__init__.py +++ b/libs/langchain/langchain/chat_models/__init__.py @@ -31,7 +31,7 @@ def __getattr__(name: str) -> None: "Importing chat models from langchain is no longer supported. " "Please import from langchain-community like so:\n\n" f"`from langchain_community.chat_models import {name}`.", - category=LangChainDeprecationWarning + category=LangChainDeprecationWarning, ) return getattr(chat_models, name)