Skip to content

Commit

Permalink
Use zip instead of zip_longest in setLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
n-elie committed Jun 4, 2024
1 parent 33072b1 commit 3d7465b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PySide6MolecularNetwork/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def setLabelsFromModel(self, model, column_id, role=Qt.DisplayRole):
node.setLabel(str(label))

def setLabels(self, labels):
for node, label in itertools.zip_longest(self.nodes(), labels):
for node, label in zip(self.nodes(), labels):
node.setLabel(label)

def resetLabels(self):
Expand Down

0 comments on commit 3d7465b

Please sign in to comment.