The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: type ignore fixes (#18395)
Daniel Chico7d962278f611
diff --git a/libs/community/langchain_community/chat_models/kinetica.py b/libs/community/langchain_community/chat_models/kinetica.pyindex 38c5809aca..9362e55060 100644--- a/libs/community/langchain_community/chat_models/kinetica.py+++ b/libs/community/langchain_community/chat_models/kinetica.py@@ -50,7 +50,7 @@ class _KdtSuggestContext(BaseModel):lines.append("(")if not self.columns or len(self.columns) == 0:- ValueError(detail="columns list can't be null.") # type: ignore+ ValueError("columns list can't be null.")columns = []for column in self.columns:diff --git a/libs/community/langchain_community/document_loaders/azure_blob_storage_container.py b/libs/community/langchain_community/document_loaders/azure_blob_storage_container.pyindex 4f3bc78b44..25f53a3ade 100644--- a/libs/community/langchain_community/document_loaders/azure_blob_storage_container.py+++ b/libs/community/langchain_community/document_loaders/azure_blob_storage_container.py@@ -39,7 +39,7 @@ class AzureBlobStorageContainerLoader(BaseLoader):loader = AzureBlobStorageFileLoader(self.conn_str,self.container,- blob.name, # type: ignore+ blob.name,)docs.extend(loader.load())return docsdiff --git a/libs/community/langchain_community/document_loaders/blackboard.py b/libs/community/langchain_community/document_loaders/blackboard.pyindex 873f0ab1db..682eafb3ce 100644--- a/libs/community/langchain_community/document_loaders/blackboard.py+++ b/libs/community/langchain_community/document_loaders/blackboard.py@@ -176,16 +176,16 @@ class BlackboardLoader(WebBaseLoader):from bs4 import BeautifulSoup, Tag# Get content list+ content_list: BeautifulSoupcontent_list = soup.find("ul", {"class": "contentList"})if content_list is None:raise ValueError("No content list found.")- content_list: BeautifulSoup # type: ignore# Get all attachmentsattachments = []+ attachment: Tagfor attachment in content_list.find_all("ul", {"class": "attachments"}):- attachment: Tag # type: ignore+ link: Tagfor link in attachment.find_all("a"):- link: Tag # type: ignorehref = link.get("href")# Only add if href is not None and does not start with #if href is not None and not href.startswith("#"):diff --git a/libs/community/langchain_community/document_loaders/confluence.py b/libs/community/langchain_community/document_loaders/confluence.pyindex 0c57f48fb2..ca7060a286 100644--- a/libs/community/langchain_community/document_loaders/confluence.py+++ b/libs/community/langchain_community/document_loaders/confluence.py@@ -469,7 +469,7 @@ class ConfluenceLoader(BaseLoader):)if include_comments or not keep_markdown_format:try:- from bs4 import BeautifulSoup # type: ignore+ from bs4 import BeautifulSoupexcept ImportError:raise ImportError("`beautifulsoup4` package not found, please run "