MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / __iadd__

Method __iadd__

dm_control/viewer/util.py:235–241  ·  view source on GitHub ↗

Add new listeners and update them about the state.

(self, value)

Source from the content-addressed store, hash-verified

233 listener(self._value)
234
235 def __iadd__(self, value):
236 """Add new listeners and update them about the state."""
237 listeners = to_iterable(value)
238 super().__iadd__(listeners)
239 for listener in listeners:
240 listener(self._value)
241 return self
242
243 @property
244 def value(self):

Callers

nothing calls this directly

Calls 2

to_iterableFunction · 0.85
__iadd__Method · 0.45

Tested by

no test coverage detected