From 35ff62b6383ba07f9549edbb652f04fa69fb046c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 4 Jun 2020 00:10:50 -0700 Subject: fmt --- fatcat_scholar/sandcrawler.py | 9 ++++++++- fatcat_scholar/schema.py | 2 ++ fatcat_scholar/search.py | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/sandcrawler.py b/fatcat_scholar/sandcrawler.py index 66d5686..6f0f85c 100644 --- a/fatcat_scholar/sandcrawler.py +++ b/fatcat_scholar/sandcrawler.py @@ -52,7 +52,14 @@ class SandcrawlerMinioClient(object): ) return obj_path - def get_blob(self, folder: str, sha1hex: str, extension: str ="", prefix: str ="", bucket: Optional[str] = None) -> bytes: + def get_blob( + self, + folder: str, + sha1hex: str, + extension: str = "", + prefix: str = "", + bucket: Optional[str] = None, + ) -> bytes: """ sha1hex is sha1 of the blob itself diff --git a/fatcat_scholar/schema.py b/fatcat_scholar/schema.py index 187fe58..c5f2927 100644 --- a/fatcat_scholar/schema.py +++ b/fatcat_scholar/schema.py @@ -11,8 +11,10 @@ from typing import Optional, List, Any import ftfy from bs4 import BeautifulSoup + # pytype: disable=import-error from pydantic import BaseModel + # pytype: enable=import-error from fatcat_openapi_client import ReleaseEntity, ReleaseContrib diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index a529f6a..bfc7c6e 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -10,8 +10,10 @@ from typing import List, Optional, Any import elasticsearch from dynaconf import settings from elasticsearch_dsl import Search, Q + # 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, -- cgit v1.2.3