Skip to content

Commit

Permalink
fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Jul 13, 2023
1 parent 6b2ce69 commit 02302e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def evaluate_vertex_attribute_from_edge(self, edge_list: List[Edge]) -> None:
and destination_vertex.block_type == BlockType.TF_VARIABLE
):
# evaluate the last specified variable based on .tfvars precedence
destination_vertex = list(filter(lambda v: v.block_type == BlockType.TF_VARIABLE, map(lambda e: self.local_graph.vertices[e.dest], edge_list)))[-1] # type:ignore[no-any-return] # will be fixed with adding type hints to local_graph
destination_vertex = list(filter(lambda v: v.block_type == BlockType.TF_VARIABLE, map(lambda e: self.local_graph.vertices[e.dest], edge_list)))[-1]
self.update_evaluated_value(
changed_attribute_key=edge.label,
changed_attribute_value=destination_vertex.attributes["default"],
Expand Down

0 comments on commit 02302e2

Please sign in to comment.