Skip to content

Commit cf50f07

Browse files
Use braces
1 parent 063cf5e commit cf50f07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vt_graph_api/graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,10 @@ def _add_group_nodes_from_json_data(self, json_graph_data_nodes):
458458
}
459459
"""
460460

461-
self.group_nodes = dict([
462-
(node['entity_id'], node) for node in json_graph_data_nodes
463-
if node.get("type") == "relationship" and node.get(
464-
"entity_attributes", {}).get("relationship_type") == "group"])
461+
self.group_nodes = {node['entity_id']: node for node in
462+
json_graph_data_nodes
463+
if node.get("type") == "relationship" and node.get(
464+
"entity_attributes", {}).get("relationship_type") == "group"}
465465

466466
def _is_special_relationship_node(self, node):
467467
"""Checks if a node is a special relationship node.

0 commit comments

Comments
 (0)