Skip to content

Commit

Permalink
chore: correct parsed_args type annotation (ansible#615)
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Shimkus <[email protected]>
  • Loading branch information
jshimkus-rh authored Nov 6, 2023
1 parent 7e34383 commit f12f82c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ansible_rulebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion ansible_rulebook/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f12f82c

Please sign in to comment.