File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
libs/langchain-mongodb/tests/integration_tests Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import os
4- from typing import TYPE_CHECKING , Generator
4+ from typing import Generator
55
66import pytest
77from langchain_core .documents import Document
88from langchain_core .language_models .chat_models import BaseChatModel
9+ from langchain_core .messages import AIMessage
910from langchain_openai import AzureChatOpenAI , ChatOpenAI
1011from pymongo import MongoClient
1112from pymongo .collection import Collection
1617
1718from ..utils import CONNECTION_STRING , DB_NAME
1819
19- if TYPE_CHECKING :
20- pass
21-
22-
2320COLLECTION_NAME = "langchain_test_graphrag"
2421
2522
@@ -335,7 +332,7 @@ def test_view(graph_store):
335332 To run: `pytest -m viz`
336333 """
337334 try :
338- import holoviews as hv
335+ import holoviews as hv # type: ignore
339336 except ImportError :
340337 pytest .skip ("This test requires optional-dependency `viz`" )
341338
You can’t perform that action at this time.
0 commit comments