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

Method _update_target

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

Source from the content-addressed store, hash-verified

335 self.updating = False
336
337 def _update_target(self, change: t.Any) -> None:
338 if self.updating:
339 return
340 with self._busy_updating():
341 setattr(self.target[0], self.target[1], self._transform(change.new))
342 if getattr(self.source[0], self.source[1]) != change.new:
343 raise TraitError(
344 f"Broken link {self}: the source value changed while updating " "the target."
345 )
346
347 def _update_source(self, change: t.Any) -> None:
348 if self.updating:

Callers

nothing calls this directly

Calls 3

_busy_updatingMethod · 0.95
_transformMethod · 0.95
TraitErrorClass · 0.85

Tested by

no test coverage detected