Skip to content

Commit 110008b

Browse files
resolving circular dependency
1 parent 2a9d302 commit 110008b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contentctl/objects/abstract_security_content_objects/detection_abstract.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
from contentctl.objects.enums import NistCategory
2626

2727
from contentctl.objects.detection_tags import DetectionTags
28-
from contentctl.objects.detection import Detection
2928
from contentctl.objects.deployment import Deployment
3029
from contentctl.objects.unit_test import UnitTest
3130
from contentctl.objects.test_group import TestGroup
@@ -392,7 +391,7 @@ def model_post_init(self, __context: Any) -> None:
392391

393392
# Ensure that all baselines link to this detection
394393
for baseline in self.baselines:
395-
new_detections: list[Detection | str] = []
394+
new_detections: list[Detection_Abstract | str] = []
396395
replaced = False
397396
for d in baseline.tags.detections:
398397
if isinstance(d, str) and self.name == d:

0 commit comments

Comments
 (0)