diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 18:31:17 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 18:31:17 -0700 |
commit | aabb14864abcff9057871904b3da848e5b14acd9 (patch) | |
tree | f5622436c9337f978293fcd4aee996207352534d /python/sandcrawler/pdftrio.py | |
parent | aa6e41fa33bd1e0a321acb2e07a701e996a3652e (diff) | |
download | sandcrawler-aabb14864abcff9057871904b3da848e5b14acd9.tar.gz sandcrawler-aabb14864abcff9057871904b3da848e5b14acd9.zip |
fix type annotations for petabox body fetch helper
Diffstat (limited to 'python/sandcrawler/pdftrio.py')
-rw-r--r-- | python/sandcrawler/pdftrio.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/sandcrawler/pdftrio.py b/python/sandcrawler/pdftrio.py index 7d39f0f..138e65c 100644 --- a/python/sandcrawler/pdftrio.py +++ b/python/sandcrawler/pdftrio.py @@ -88,7 +88,8 @@ class PdfTrioWorker(SandcrawlerFetchWorker): fetch_sec = time.time() - start if fetch_result['status'] != 'success': return fetch_result - blob = fetch_result['blob'] + blob: bytes = fetch_result['blob'] + assert blob and isinstance(blob, bytes) result = dict() result['file_meta'] = gen_file_metadata(blob) |