Skip to content

Commit 4d9a831

Browse files
committed
Typing
1 parent af0ff41 commit 4d9a831

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contentctl/actions/detection_testing/GitService.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def getChanges(self, target_branch:str)->List[Detection]:
6969
#Make a filename to content map
7070
filepath_to_content_map = { obj.file_path:obj for (_,obj) in self.director.name_to_content_map.items()}
7171

72-
updated_detections:List[Detection] = set()
73-
updated_macros:List[Macro] = set()
74-
updated_lookups:List[Lookup] = set()
75-
updated_datasources:List[DataSource] = set()
72+
updated_detections: set[Detection] = set()
73+
updated_macros: set[Macro] = set()
74+
updated_lookups: set[Lookup] = set()
75+
updated_datasources: set[DataSource] = set()
7676

7777

7878
for diff in all_diffs:
@@ -98,7 +98,7 @@ def getChanges(self, target_branch:str)->List[Detection]:
9898
elif decoded_path.is_relative_to(self.config.path/"data_sources") and decoded_path.suffix == ".yml":
9999
datasourceObject = filepath_to_content_map.get(decoded_path, None)
100100
if isinstance(datasourceObject, DataSource):
101-
updated_datasources.append(datasourceObject)
101+
updated_datasources.add(datasourceObject)
102102
else:
103103
raise Exception(f"Error getting data source object for file {str(decoded_path)}")
104104

0 commit comments

Comments
 (0)