Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Nov 17, 2023
1 parent 2e86a7d commit fc279a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions llama_hub/obsidian/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
"""
import os
from pathlib import Path
from typing import Any, List
from typing import Any, List, TYPE_CHECKING

if TYPE_CHECKING:
from langchain.docstore.document import Document as LCDocument

from langchain.docstore.document import Document as LCDocument
from llama_index.readers.base import BaseReader
from llama_index.readers.file.markdown_reader import MarkdownReader
from llama_index.readers.schema.base import Document
Expand Down Expand Up @@ -39,7 +41,7 @@ def load_data(self, *args: Any, **load_kwargs: Any) -> List[Document]:
docs.extend(content)
return docs

def load_langchain_documents(self, **load_kwargs: Any) -> List[LCDocument]:
def load_langchain_documents(self, **load_kwargs: Any) -> List["LCDocument"]:
"""Load data in LangChain document format."""
docs = self.load_data(**load_kwargs)
return [d.to_langchain_format() for d in docs]

0 comments on commit fc279a9

Please sign in to comment.