summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/sandcrawler.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-04 00:09:56 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-04 00:09:56 -0700
commit403fa63a7b2ab015b86e35e577218d045d1ea6ca (patch)
tree566405071a9148775a138168100d619d11a0f738 /fatcat_scholar/sandcrawler.py
parent649913ba9fbab8e9b7b428dec6526797c5b1c532 (diff)
downloadfatcat-scholar-403fa63a7b2ab015b86e35e577218d045d1ea6ca.tar.gz
fatcat-scholar-403fa63a7b2ab015b86e35e577218d045d1ea6ca.zip
more type annotations and fixes
Diffstat (limited to 'fatcat_scholar/sandcrawler.py')
-rw-r--r--fatcat_scholar/sandcrawler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/sandcrawler.py b/fatcat_scholar/sandcrawler.py
index 347364f..66d5686 100644
--- a/fatcat_scholar/sandcrawler.py
+++ b/fatcat_scholar/sandcrawler.py
@@ -41,7 +41,7 @@ class SandcrawlerMinioClient(object):
)
self.default_bucket = default_bucket
- def _blob_path(self, folder, sha1hex, extension, prefix):
+ def _blob_path(self, folder: str, sha1hex: str, extension: str, prefix: str) -> str:
if not extension:
extension = ""
if not prefix:
@@ -52,7 +52,7 @@ class SandcrawlerMinioClient(object):
)
return obj_path
- def get_blob(self, folder, sha1hex, extension="", prefix="", bucket=None):
+ def get_blob(self, folder: str, sha1hex: str, extension: str ="", prefix: str ="", bucket: Optional[str] = None) -> bytes:
"""
sha1hex is sha1 of the blob itself