diff --git a/libs/community/langchain_community/chat_models/kinetica.py b/libs/community/langchain_community/chat_models/kinetica.py index 38c5809aca5..9362e550608 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.py index 4f3bc78b442..25f53a3ade4 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 docs diff --git a/libs/community/langchain_community/document_loaders/blackboard.py b/libs/community/langchain_community/document_loaders/blackboard.py index 873f0ab1db1..682eafb3ceb 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: BeautifulSoup content_list = soup.find("ul", {"class": "contentList"}) if content_list is None: raise ValueError("No content list found.") - content_list: BeautifulSoup # type: ignore # Get all attachments attachments = [] + attachment: Tag for attachment in content_list.find_all("ul", {"class": "attachments"}): - attachment: Tag # type: ignore + link: Tag for link in attachment.find_all("a"): - link: Tag # type: ignore href = 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.py index 0c57f48fb23..ca7060a286d 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 BeautifulSoup except ImportError: raise ImportError( "`beautifulsoup4` package not found, please run "