diff --git a/libs/community/langchain_community/memory/kg.py b/libs/community/langchain_community/memory/kg.py index 97d6a02e84..09787d396c 100644 --- a/libs/community/langchain_community/memory/kg.py +++ b/libs/community/langchain_community/memory/kg.py @@ -136,5 +136,5 @@ try: self.kg.clear() except ImportError: # Placeholder object - class ConversationKGMemory: + class ConversationKGMemory: # type: ignore[no-redef] pass diff --git a/libs/community/langchain_community/memory/motorhead_memory.py b/libs/community/langchain_community/memory/motorhead_memory.py index 50f122c56d..1dbc117cc0 100644 --- a/libs/community/langchain_community/memory/motorhead_memory.py +++ b/libs/community/langchain_community/memory/motorhead_memory.py @@ -96,5 +96,5 @@ try: requests.delete(f"{self.url}/sessions/{self.session_id}/memory") except ImportError: # Placeholder object - class MotorheadMemory: + class MotorheadMemory: # type: ignore[no-redef] pass diff --git a/libs/community/langchain_community/memory/zep_memory.py b/libs/community/langchain_community/memory/zep_memory.py index 9743aa8240..80d7caad0c 100644 --- a/libs/community/langchain_community/memory/zep_memory.py +++ b/libs/community/langchain_community/memory/zep_memory.py @@ -125,5 +125,5 @@ try: self.chat_memory.add_ai_message(output_str, metadata=metadata) except ImportError: # Placeholder object - class ZepMemory: + class ZepMemory: # type: ignore[no-redef] pass