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

Method __call__

traitlets/traitlets.py:231–232  ·  view source on GitHub ↗
(self, test: t.Any)

Source from the content-addressed store, hash-verified

229 self.value = value
230
231 def __call__(self, test: t.Any) -> bool:
232 return bool(test == self.value)
233
234 def __repr__(self) -> str:
235 return "<SimpleTest(%r)" % self.value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected