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

Class _SimpleTest

traitlets/traitlets.py:227–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227class _SimpleTest:
228 def __init__(self, value: t.Any) -> None:
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
236
237 def __str__(self) -> str:
238 return self.__repr__()
239
240
241def getmembers(object: t.Any, predicate: t.Any = None) -> list[tuple[str, t.Any]]:

Callers 2

class_traitsMethod · 0.85
traitsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…