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

Method __init__

traitlets/traitlets.py:1271–1273  ·  view source on GitHub ↗
(self, names: tuple[Sentinel | str, ...], type: str = "")

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected