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

Class ObserveHandler

traitlets/traitlets.py:1270–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1268
1269
1270class ObserveHandler(EventHandler):
1271 def __init__(self, names: tuple[Sentinel | str, ...], type: str = "") -> None:
1272 self.trait_names = names
1273 self.type = type
1274
1275 def instance_init(self, inst: HasTraits) -> None:
1276 inst.observe(self, self.trait_names, type=self.type)
1277
1278
1279class ValidateHandler(EventHandler):

Callers 1

observeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…