Skip to content

Commit

Permalink
fix: mypy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bodyangug committed Oct 4, 2023
1 parent 8d0079a commit 874c6f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys

import urllib3 as urllib3
from dotenv import load_dotenv
from dotenv import load_dotenv # type: ignore
from flask import Flask
from flask_cors import CORS
from v3.libraries_api import libraries_api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
from pathlib import Path
from typing import Dict, Union

from bingo_elastic.elastic import ElasticRepository, IndexName
from bingo_elastic.model import helpers
from bingo_elastic.model.record import IndigoRecord
from bingo_elastic.queries import (
from bingo_elastic.elastic import ElasticRepository, IndexName # type: ignore
from bingo_elastic.model import helpers # type: ignore
from bingo_elastic.model.record import IndigoRecord # type: ignore
from bingo_elastic.queries import ( # type: ignore
BaseMatch,
EuclidSimilarityMatch,
TanimotoSimilarityMatch,
TverskySimilarityMatch,
query_factory,
)
from dotenv import load_dotenv
from elasticsearch import Elasticsearch as NativeElastic
from dotenv import load_dotenv # type: ignore
from elasticsearch import Elasticsearch as NativeElastic # type: ignore
from flask import Blueprint, request
from flask_cors import cross_origin
from indigo import Indigo, IndigoObject
from indigo import Indigo, IndigoObject # type: ignore

libraries_api = Blueprint("libraries_api", __name__)

Expand Down Expand Up @@ -353,8 +353,8 @@ def compile_query(
query_subject: Union[BaseMatch, IndigoObject, IndigoRecord] = None,
**kwargs,
) -> Dict:
query = {}
postprocess_actions = []
query: Dict = {}
postprocess_actions: list = []
if isinstance(query_subject, BaseMatch):
query_subject.compile(query, postprocess_actions)
elif isinstance(query_subject, IndigoRecord):
Expand Down

0 comments on commit 874c6f0

Please sign in to comment.