Skip to content

Commit 838dc37

Browse files
committed
redundant
1 parent 69a93cd commit 838dc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compas/datastructures/assembly/assembly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def add_part(self, part, key=None, **kwargs):
117117
The identifier of the part in the current assembly graph.
118118
119119
"""
120-
if part.guid in self._parts.keys():
120+
if part.guid in self._parts:
121121
raise AssemblyError("Part already added to the assembly")
122122
key = self.graph.add_node(key=key, part=part, **kwargs)
123123
part.key = key

0 commit comments

Comments
 (0)