Skip to content

Commit 72b9397

Browse files
1 parent c0c8eb8 commit 72b9397

File tree

1 file changed

+1
-1
lines changed
  • python/ipywidgets/ipywidgets/widgets

1 file changed

+1
-1
lines changed

python/ipywidgets/ipywidgets/widgets/widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def add_traits(self, **traits):
684684
"""Dynamically add trait attributes to the Widget."""
685685
super().add_traits(**traits)
686686
for name, trait in traits.items():
687-
if trait.get_metadata('sync'):
687+
if 'sync' in trait.metadata:
688688
self.keys.append(name)
689689
self.send_state(name)
690690

0 commit comments

Comments
 (0)