aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-04 00:10:50 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-04 00:10:50 -0700
commit35ff62b6383ba07f9549edbb652f04fa69fb046c (patch)
tree9072d4ce28b65bbaa9c111fb87f2e3e449198ecb /fatcat_scholar
parent403fa63a7b2ab015b86e35e577218d045d1ea6ca (diff)
downloadfatcat-scholar-35ff62b6383ba07f9549edbb652f04fa69fb046c.tar.gz
fatcat-scholar-35ff62b6383ba07f9549edbb652f04fa69fb046c.zip
fmt
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/sandcrawler.py9
-rw-r--r--fatcat_scholar/schema.py2
-rw-r--r--fatcat_scholar/search.py2
3 files changed, 12 insertions, 1 deletions
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,