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

Function _callback_wrapper

traitlets/traitlets.py:946–950  ·  view source on GitHub ↗
(cb: t.Any)

Source from the content-addressed store, hash-verified

944
945
946def _callback_wrapper(cb: t.Any) -> _CallbackWrapper:
947 if isinstance(cb, _CallbackWrapper):
948 return cb
949 else:
950 return _CallbackWrapper(cb)
951
952
953class MetaHasDescriptors(type):

Callers 2

_notify_observersMethod · 0.85
on_trait_changeMethod · 0.85

Calls 1

_CallbackWrapperClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…