From 649913ba9fbab8e9b7b428dec6526797c5b1c532 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Jun 2020 23:58:38 -0700 Subject: start some annotaition fixes for pytype --- fatcat_scholar/search.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fatcat_scholar/search.py') 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 -- cgit v1.2.3