From f12f82c7870fde0d2d083481eb76924eac96d716 Mon Sep 17 00:00:00 2001
From: Joe Shimkus <35382397+jshimkus-rh@users.noreply.github.com>
Date: Mon, 6 Nov 2023 18:14:43 -0500
Subject: [PATCH] chore: correct parsed_args type annotation (#615)

Signed-off-by: Joe Shimkus <jshimkus@redhat.com>
---
 ansible_rulebook/app.py    | 4 ++--
 ansible_rulebook/engine.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ansible_rulebook/app.py b/ansible_rulebook/app.py
index 5cb3fd3f..a9855330 100644
--- a/ansible_rulebook/app.py
+++ b/ansible_rulebook/app.py
@@ -61,7 +61,7 @@ def qsize(self):
 
 
 # FIXME(cutwater): Replace parsed_args with clear interface
-async def run(parsed_args: argparse.ArgumentParser) -> None:
+async def run(parsed_args: argparse.Namespace) -> None:
     file_monitor = None
 
     if parsed_args.worker and parsed_args.websocket_address and parsed_args.id:
@@ -187,7 +187,7 @@ def load_vars(parsed_args) -> Dict[str, str]:
 
 # TODO(cutwater): Maybe move to util.py
 def load_rulebook(
-    parsed_args: argparse.ArgumentParser, variables: Optional[Dict] = None
+    parsed_args: argparse.Namespace, variables: Optional[Dict] = None
 ) -> List[RuleSet]:
     if not parsed_args.rulebook:
         logger.debug("Loading no rules")
diff --git a/ansible_rulebook/engine.py b/ansible_rulebook/engine.py
index 609d5883..eea13c8c 100644
--- a/ansible_rulebook/engine.py
+++ b/ansible_rulebook/engine.py
@@ -260,7 +260,7 @@ async def run_rulesets(
     ruleset_queues: List[RuleSetQueue],
     variables: Dict,
     inventory: str = "",
-    parsed_args: argparse.ArgumentParser = None,
+    parsed_args: argparse.Namespace = None,
     project_data_file: Optional[str] = None,
     file_monitor: str = None,
 ) -> bool: