Skip to content

Commit cee0b07

Browse files
Update type annotation
1 parent 8f3c7be commit cee0b07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

detection_rules/index_mappings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ def prepare_integration_mappings( # noqa: PLR0913
170170
"""Prepare integration mappings for the given rule integrations."""
171171
integration_mappings: dict[str, Any] = {}
172172
index_lookup: dict[str, Any] = {}
173-
dataset_restriction: dict[str, str] = {}
173+
dataset_restriction: dict[str, list[str]] = {}
174174

175175
# Process restrictions, note we need this for loops to be separate
176176
for event_dataset in event_dataset_integrations:
177177
# Ensure the integration is in rule_integrations
178178
if event_dataset.package not in rule_integrations:
179-
dataset_restriction.setdefault(event_dataset.package, []).append(event_dataset.integration) # type: ignore[reportIncompatibleMethodOverride]
179+
dataset_restriction.setdefault(event_dataset.package, []).append(event_dataset.integration)
180180
for event_dataset in event_dataset_integrations:
181181
if event_dataset.package not in rule_integrations:
182182
rule_integrations.append(event_dataset.package)

0 commit comments

Comments
 (0)