Skip to content

Commit d746c8e

Browse files
authored
Merge pull request #322 from eudoxos/fix-addObject-arg
Fix empty dict as default arg
2 parents 08f08c9 + 14146f8 commit d746c8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cq_editor/widgets/object_tree.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ def addObjects(self,objects,clean=False,root=None):
275275
self.sigObjectsAdded[list].emit(ais_list)
276276

277277
@pyqtSlot(object,str,object)
278-
def addObject(self,obj,name='',options={}):
278+
def addObject(self,obj,name='',options=None):
279+
280+
if options is None: options={}
279281

280282
root = self.CQ
281283

0 commit comments

Comments
 (0)