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

Method _remove_notifiers

traitlets/traitlets.py:1593–1602  ·  view source on GitHub ↗
(
        self, handler: t.Callable[..., t.Any] | None, name: Sentinel | str, type: str | Sentinel
    )

Source from the content-addressed store, hash-verified

1591 nlist.append(handler)
1592
1593 def _remove_notifiers(
1594 self, handler: t.Callable[..., t.Any] | None, name: Sentinel | str, type: str | Sentinel
1595 ) -> None:
1596 try:
1597 if handler is None:
1598 del self._trait_notifiers[name][type]
1599 else:
1600 self._trait_notifiers[name][type].remove(handler)
1601 except KeyError:
1602 pass
1603
1604 def on_trait_change(
1605 self,

Callers 1

unobserveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected