Skip to content

Commit

Permalink
Fix type check (langchain-ai#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Sep 27, 2023
1 parent 144541c commit 74cf890
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import os
from operator import itemgetter
from typing import AsyncIterator, Dict, List, Optional, TYPE_CHECKING, Sequence
from typing import AsyncIterator, Dict, List, Optional, Sequence

import weaviate
from fastapi import FastAPI, Request
Expand All @@ -18,12 +18,10 @@
from langchain.vectorstores import Weaviate
from langsmith import Client
from pydantic import BaseModel

if TYPE_CHECKING:
from langchain.schema import Document
from langchain.schema.language_model import BaseLanguageModel
from langchain.schema.retriever import BaseRetriever
from langchain.schema.runnable import Runnable
from langchain.schema import Document
from langchain.schema.language_model import BaseLanguageModel
from langchain.schema.retriever import BaseRetriever
from langchain.schema.runnable import Runnable

from constants import WEAVIATE_DOCS_INDEX_NAME

Expand Down

0 comments on commit 74cf890

Please sign in to comment.