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 65bdc52 commit b6ba65aCopy full SHA for b6ba65a
1 file changed
param/__init__.py
@@ -1165,6 +1165,11 @@ def get_range(self):
1165
1166
1167
class SelectObjects(list):
1168
+ """
1169
+ Wrapper around Selector.objects which allows both list-like and
1170
+ dictionary like updates to the set of objects, ensuring backward
1171
+ compatibility for setting objects as lists and dictionaries.
1172
1173
1174
def __init__(self, iterable, parameter=None):
1175
super(SelectObjects, self).__init__(iterable)
@@ -1180,6 +1185,7 @@ def _warn(self, method):
1180
1185
1181
1186
@contextmanager
1182
1187
def _trigger(self, trigger=True):
1188
+ trigger = 'objects' in self._parameter.watchers and trigger
1183
1189
old = dict(self._parameter.names) or list(self._parameter._objects)
1184
1190
yield
1191
if trigger:
0 commit comments