aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_util.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-03 12:29:39 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-03 12:31:07 -0700
commit10a2374051568edf3d872988e730328d899a0fdd (patch)
tree795be5e149a021f84bc4305c1811e63cc86f7aa1 /python/fatcat_util.py
parentcfab1ddcd8a05b62ecc16763d18a6ecee8fa234f (diff)
downloadfatcat-10a2374051568edf3d872988e730328d899a0fdd.tar.gz
fatcat-10a2374051568edf3d872988e730328d899a0fdd.zip
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.
Diffstat (limited to 'python/fatcat_util.py')
-rwxr-xr-xpython/fatcat_util.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/fatcat_util.py b/python/fatcat_util.py
index 57102e9e..7e3d4260 100755
--- a/python/fatcat_util.py
+++ b/python/fatcat_util.py
@@ -13,24 +13,24 @@ import sys
from fatcat_tools import authenticated_api, fcid2uuid, uuid2fcid
-def run_uuid2fcid(args):
+def run_uuid2fcid(args: argparse.Namespace) -> None:
print(uuid2fcid(args.uuid))
-def run_fcid2uuid(args):
+def run_fcid2uuid(args: argparse.Namespace) -> None:
print(fcid2uuid(args.fcid))
-def run_editgroup_accept(args):
+def run_editgroup_accept(args: argparse.Namespace) -> None:
args.api.accept_editgroup(args.editgroup_id)
-def run_editgroup_submit(args):
+def run_editgroup_submit(args: argparse.Namespace) -> None:
eg = args.api.get_editgroup(args.editgroup_id)
args.api.update_editgroup(args.editgroup_id, eg, submit=True)
-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"