Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
omriyoffe-panw committed Oct 22, 2024
1 parent 9810aa8 commit da472ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion checkov/arm/graph_builder/context_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
def build_definitions_context(definitions: Dict[Path, Any], definitions_raw: Dict[Path, List[Tuple[int, str]]]
) -> Dict[str, Dict[str, Any]]:
# TODO
pass
return {}
2 changes: 1 addition & 1 deletion checkov/arm/graph_builder/graph_to_tf_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def convert_graph_vertices_to_tf_definitions(
vertices: list[ArmBlock], root_folder: str | Path | None
) -> tuple[dict[Path, Any], dict[str, dict[str, Any]]]:
# TODO
pass
return ({},{})
2 changes: 1 addition & 1 deletion checkov/arm/graph_builder/local_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _create_explicit_edge(self, origin_vertex_index: int, resource_name: str, de

def _create_edge(self, element_name: str, origin_vertex_index: int, label: str) -> None:
dest_vertex_index = self.vertices_by_name.get(element_name)
if origin_vertex_index == dest_vertex_index:
if origin_vertex_index == dest_vertex_index or dest_vertex_index is None:
return
edge = Edge(origin_vertex_index, dest_vertex_index, label)
self.edges.append(edge)
Expand Down

0 comments on commit da472ad

Please sign in to comment.