Skip to content

Commit

Permalink
Fix type signature for Python <3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kelnage committed Jul 3, 2024
1 parent d9fa5cf commit eacfc51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sigma/pipelines/loki/loki.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def apply(
detection.to_plain()
for detection in rule.detection.detections.values()
]
field_values: list[dict[str, str | int | None]] = [
field_values: list[dict[str, Union[str, int, None]]] = [
d for d in plain if isinstance(d, dict)
]
if len(field_values) > 0:
Expand Down

0 comments on commit eacfc51

Please sign in to comment.