From 10a2374051568edf3d872988e730328d899a0fdd Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 12:29:39 -0700 Subject: typing: first batch of python bulk type annotations While these changes are more delicate than simple lint changes, this specific batch of edits and annotations was *relatively* simple, and resulted in few code changes other than function signature additions. --- python/fatcat_cleanup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_cleanup.py') diff --git a/python/fatcat_cleanup.py b/python/fatcat_cleanup.py index f8030b16..8bcc2ea9 100755 --- a/python/fatcat_cleanup.py +++ b/python/fatcat_cleanup.py @@ -14,7 +14,7 @@ from fatcat_tools.importers import JsonLinePusher sentry_client = raven.Client() -def run_files(args): +def run_files(args: argparse.Namespace) -> None: fmi = FileCleaner( args.api, dry_run_mode=args.dry_run, @@ -24,7 +24,7 @@ def run_files(args): JsonLinePusher(fmi, args.json_file).run() -def main(): +def main() -> None: parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument( "--fatcat-api-url", default="http://localhost:9411/v0", help="connect to this host/port" -- cgit v1.2.3