Skip to content

Commit

Permalink
chore: fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
gg-mmill committed Dec 9, 2024
1 parent 490776a commit 91226c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggshield/verticals/secret/secret_scan_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class IgnoreReason(str, Enum):

def compute_ignore_reason(
policy_break: PolicyBreak, secret_config: SecretConfig
) -> Union[str, None]:
) -> Optional[str]:
"""Computes the possible ignore reason associated with a PolicyBreak"""
ignore_reason = None
if policy_break.diff_kind in {DiffKind.DELETION, DiffKind.CONTEXT}:
Expand Down

0 comments on commit 91226c6

Please sign in to comment.