mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-28 09:28:48 +00:00
Fix airbyte loader (#8998)
Fix airbyte loader https://github.com/langchain-ai/langchain/issues/8996
This commit is contained in:
parent
90579021f8
commit
a6e6e9bb86
@ -1,10 +1,9 @@
|
|||||||
"""Loads local airbyte json files."""
|
"""Loads local airbyte json files."""
|
||||||
from typing import Any, Callable, Iterator, List, Mapping, Optional
|
from typing import Any, Callable, Iterator, List, Mapping, Optional
|
||||||
|
|
||||||
from libs.langchain.langchain.utils.utils import guard_import
|
|
||||||
|
|
||||||
from langchain.docstore.document import Document
|
from langchain.docstore.document import Document
|
||||||
from langchain.document_loaders.base import BaseLoader
|
from langchain.document_loaders.base import BaseLoader
|
||||||
|
from langchain.utils.utils import guard_import
|
||||||
|
|
||||||
RecordHandler = Callable[[Any, Optional[str]], Document]
|
RecordHandler = Callable[[Any, Optional[str]], Document]
|
||||||
|
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
"""Test the airbyte document loader.
|
||||||
|
|
||||||
|
Light test to ensure that the airbyte document loader can be imported.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
def test_airbyte_import() -> None:
|
||||||
|
"""Test that the airbyte document loader can be imported."""
|
||||||
|
from langchain.document_loaders import airbyte # noqa
|
Loading…
Reference in New Issue
Block a user