Skip to content

Commit

Permalink
Fixed subscriptable typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
slincoln-aiq committed Sep 3, 2024
1 parent eeb1523 commit 01192ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sigma/pipelines/microsoft365defender/finalization.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, field
from typing import Union
from typing import Union, List

from sigma.processing.finalization import Finalizer

Expand All @@ -16,9 +16,9 @@ class Microsoft365DefenderTableFinalizer(Finalizer):
A custom table name can be specified in the finalizer, otherwise the table name will be selected based on the category of the rule.
"""

table_names: Union[str, list[str]] = field(default_factory=list)
table_names: Union[str, List[str]] = field(default_factory=list)

def apply(self, pipeline: "sigma.processing.pipeline.ProcessingPipeline", queries: list[str]) -> list[str]:
def apply(self, pipeline: "sigma.processing.pipeline.ProcessingPipeline", queries: List[str]) -> List[str]:
if isinstance(self.table_names, str):
self.table_names = [self.table_names] * len(queries)

Expand Down

0 comments on commit 01192ca

Please sign in to comment.