MCPcopy Create free account
hub / github.com/ipython/traitlets / _update

Method _update

traitlets/traitlets.py:419–423  ·  view source on GitHub ↗
(self, change: t.Any)

Source from the content-addressed store, hash-verified

417 self.updating = False
418
419 def _update(self, change: t.Any) -> None:
420 if self.updating:
421 return
422 with self._busy_updating():
423 setattr(self.target[0], self.target[1], self._transform(change.new))
424
425 def unlink(self) -> None:
426 self.source[0].unobserve(self._update, names=self.source[1])

Callers

nothing calls this directly

Calls 2

_busy_updatingMethod · 0.95
_transformMethod · 0.80

Tested by

no test coverage detected