aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,