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

Method _notify

tests/test_traitlets.py:2419–2427  ·  view source on GitHub ↗

check the value of all traits when each trait change is triggered This verifies that the values are not sensitive to dict ordering when loaded from kwargs

(self, name, old, new)

Source from the content-addressed store, hash-verified

2417 l = Unicode() # noqa: E741
2418
2419 def _notify(self, name, old, new):
2420 """check the value of all traits when each trait change is triggered
2421
2422 This verifies that the values are not sensitive
2423 to dict ordering when loaded from kwargs
2424 """
2425 # check the value of the other traits
2426 # when a given trait change notification fires
2427 self.notified[name] = {c: getattr(self, c) for c in "abcdefghijkl"}
2428
2429 def __init__(self, **kwargs):
2430 self.on_trait_change(self._notify)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected