Skip to content

Commit

Permalink
Fixed python 3.9 type issue in transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
slincoln-systemtwo committed Oct 25, 2024
1 parent e3e0bae commit 7a713e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sigma/pipelines/secops/transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def apply(
self._pipeline: "sigma.processing.pipeline.ProcessingPipeline" = pipeline # noqa: F821 # type: ignore
if rule.custom_attributes.get("event_types", None):
self.processing_item_applied(rule)
if isinstance(rule.custom_attributes["event_types"], Union[str, list]):
if isinstance(rule.custom_attributes["event_types"], list) or isinstance(rule.custom_attributes["event_types"], str):
rule.custom_attributes["event_types"] = set([rule.custom_attributes["event_types"]])
else:
rule.custom_attributes["event_types"] = set()
Expand Down

0 comments on commit 7a713e2

Please sign in to comment.