summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/transform.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-03 23:30:44 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-03 23:30:46 -0700
commit4c90b94c24e9e78382d12947fb27c203318d6c9c (patch)
tree56756e5ff572201369634a5cd90c7e529e032e13 /fatcat_scholar/transform.py
parentba7295cdf09c6b2bf288db85e15aa44b6782da06 (diff)
downloadfatcat-scholar-4c90b94c24e9e78382d12947fb27c203318d6c9c.tar.gz
fatcat-scholar-4c90b94c24e9e78382d12947fb27c203318d6c9c.zip
flake8-annotation linting
Added some new annotations; need to finish more.
Diffstat (limited to 'fatcat_scholar/transform.py')
-rw-r--r--fatcat_scholar/transform.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py
index 28c959b..3d47fb4 100644
--- a/fatcat_scholar/transform.py
+++ b/fatcat_scholar/transform.py
@@ -1,6 +1,6 @@
import sys
import argparse
-from typing import List, Dict, Optional, Any
+from typing import List, Dict, Optional, Any, Sequence
from fatcat_openapi_client import ReleaseEntity, FileEntity
@@ -329,7 +329,7 @@ def transform_heavy(heavy: IntermediateBundle) -> Optional[ScholarDoc]:
)
-def run_transform(infile):
+def run_transform(infile: Sequence) -> None:
for line in infile:
obj = json.loads(line)
@@ -350,7 +350,7 @@ def run_transform(infile):
print(es_doc.json())
-def main():
+def main() -> None:
"""
Run this command like: