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

Method __eq__

traitlets/traitlets.py:925–930  ·  view source on GitHub ↗
(self, other: object)

Source from the content-addressed store, hash-verified

923 raise TraitError("a trait changed callback must have 0-4 arguments.")
924
925 def __eq__(self, other: object) -> bool:
926 # The wrapper is equal to the wrapped element
927 if isinstance(other, _CallbackWrapper):
928 return bool(self.cb == other.cb)
929 else:
930 return bool(self.cb == other)
931
932 def __call__(self, change: Bunch) -> None:
933 # The wrapper is callable

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected