Skip to content

Commit

Permalink
Fix type hint for findings parameter in extract_findings function and…
Browse files Browse the repository at this point in the history
… adjust indentation
  • Loading branch information
austinsonger committed Jan 22, 2025
1 parent 7910513 commit d724755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/findings_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def extract_findings(findings: Optional[Dict[str, Any]], aws_service: str) -> Li
Extracts and processes findings for a given AWS service.
Args:
findings (Optional[List[Dict[str, Any]]]): A list of findings dictionaries or None.
findings (Optional[Dict[str, Any]]): A dictionary containing findings or None.
aws_service (str): The name of the AWS service for which findings are being processed.
Returns:
Expand All @@ -114,7 +114,7 @@ def extract_findings(findings: Optional[Dict[str, Any]], aws_service: str) -> Li
Raises:
None: Any exceptions during processing are caught and logged.
"""
if findings is None or aws_service not in findings:
if findings is None or aws_service not in findings:
logger.warning(f"No findings returned for {aws_service}")
return []

Expand Down

0 comments on commit d724755

Please sign in to comment.