MCPcopy Index your code
hub / github.com/ipython/ipython / _safe_get_methods

Method _safe_get_methods

IPython/core/guarded_eval.py:368–374  ·  view source on GitHub ↗
(self, classes, name)

Source from the content-addressed store, hash-verified

366 return self._safe_get_methods(self.allowed_getattr, "__getattribute__")
367
368 def _safe_get_methods(self, classes, name) -> set[Callable]:
369 return {
370 method
371 for class_ in classes
372 for method in [getattr(class_, name, None)]
373 if method
374 }
375
376
377class _DummyNamedTuple(NamedTuple):

Callers 4

_getitem_methodsMethod · 0.95
_getattr_methodsMethod · 0.95
_getattribute_methodsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected