summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-03 23:58:38 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-03 23:58:38 -0700
commit649913ba9fbab8e9b7b428dec6526797c5b1c532 (patch)
treef89c3807a2b2125512626dcb766bd84c8ba07106 /fatcat_scholar/search.py
parent4c90b94c24e9e78382d12947fb27c203318d6c9c (diff)
downloadfatcat-scholar-649913ba9fbab8e9b7b428dec6526797c5b1c532.tar.gz
fatcat-scholar-649913ba9fbab8e9b7b428dec6526797c5b1c532.zip
start some annotaition fixes for pytype
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r--fatcat_scholar/search.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index 6402e2b..a529f6a 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -3,13 +3,16 @@ Helpers to make elasticsearch queries.
"""
import sys
-from gettext import gettext
import datetime
+from gettext import gettext
+from typing import List, Optional, Any
+
import elasticsearch
-from pydantic import BaseModel
from dynaconf import settings
from elasticsearch_dsl import Search, Q
-from typing import List, Optional, Any
+# pytype: disable=import-error
+from pydantic import BaseModel
+# pytype: enable=import-error
# i18n note: the use of gettext below doesn't actually do the translation here,
# it just ensures that the strings are caught by babel for translation later