Fix airbyte loader (#8998)

Fix airbyte loader

https://github.com/langchain-ai/langchain/issues/8996
pull/9002/head
Eugene Yurtsev 11 months ago committed by GitHub
parent 90579021f8
commit a6e6e9bb86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,10 +1,9 @@
"""Loads local airbyte json files."""
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.document_loaders.base import BaseLoader
from langchain.utils.utils import guard_import
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…
Cancel
Save