Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ljstella committed Nov 12, 2024
1 parent af0ff41 commit 4d9a831
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions contentctl/actions/detection_testing/GitService.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def getChanges(self, target_branch:str)->List[Detection]:
#Make a filename to content map
filepath_to_content_map = { obj.file_path:obj for (_,obj) in self.director.name_to_content_map.items()}

updated_detections:List[Detection] = set()
updated_macros:List[Macro] = set()
updated_lookups:List[Lookup] = set()
updated_datasources:List[DataSource] = set()
updated_detections: set[Detection] = set()
updated_macros: set[Macro] = set()
updated_lookups: set[Lookup] = set()
updated_datasources: set[DataSource] = set()


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

Expand Down

0 comments on commit 4d9a831

Please sign in to comment.