diff --git a/paperforge/commands/content_discovery.py b/paperforge/commands/content_discovery.py index 555dec13..deb19464 100644 --- a/paperforge/commands/content_discovery.py +++ b/paperforge/commands/content_discovery.py @@ -2,10 +2,12 @@ from __future__ import annotations +import argparse + from paperforge.retrieval import gateway -def run(args) -> int: +def run(args: argparse.Namespace) -> int: """Execute ``content-discovery`` via the Layer 4 gateway.""" result = gateway.route_gateway( args.vault_path, diff --git a/paperforge/commands/paper_lookup.py b/paperforge/commands/paper_lookup.py index 35e022da..4deddb22 100644 --- a/paperforge/commands/paper_lookup.py +++ b/paperforge/commands/paper_lookup.py @@ -2,10 +2,12 @@ from __future__ import annotations +import argparse + from paperforge.retrieval import gateway -def run(args) -> int: +def run(args: argparse.Namespace) -> int: """Execute ``paper-lookup`` via the Layer 4 gateway.""" result = gateway.route_gateway( args.vault_path, diff --git a/paperforge/commands/paper_navigation.py b/paperforge/commands/paper_navigation.py index 9cc3a90f..8c6dd586 100644 --- a/paperforge/commands/paper_navigation.py +++ b/paperforge/commands/paper_navigation.py @@ -2,6 +2,7 @@ from __future__ import annotations +import argparse import json from paperforge import __version__ as PF_VERSION @@ -9,7 +10,7 @@ from paperforge.core.result import PFResult from paperforge.retrieval import gateway -def run(args) -> int: +def run(args: argparse.Namespace) -> int: """Execute ``paper-navigation`` via the Layer 4 gateway.""" result = gateway.route_gateway( args.vault_path, diff --git a/paperforge/commands/scoped_fetch.py b/paperforge/commands/scoped_fetch.py index add1467d..8073c254 100644 --- a/paperforge/commands/scoped_fetch.py +++ b/paperforge/commands/scoped_fetch.py @@ -2,13 +2,14 @@ from __future__ import annotations +import argparse import json from pathlib import Path from paperforge.retrieval import gateway -def run(args) -> int: +def run(args: argparse.Namespace) -> int: """Execute ``scoped-fetch`` via the Layer 4 gateway.""" vault = Path(args.vault_path) result = gateway.route_gateway(