We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c8eb8 commit 72b9397Copy full SHA for 72b9397
python/ipywidgets/ipywidgets/widgets/widget.py
@@ -684,7 +684,7 @@ def add_traits(self, **traits):
684
"""Dynamically add trait attributes to the Widget."""
685
super().add_traits(**traits)
686
for name, trait in traits.items():
687
- if trait.get_metadata('sync'):
+ if 'sync' in trait.metadata:
688
self.keys.append(name)
689
self.send_state(name)
690
0 commit comments