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

Function is_simple_callable

IPython/core/oinspect.py:294–297  ·  view source on GitHub ↗

True if obj is a function ()

(obj)

Source from the content-addressed store, hash-verified

292
293
294def is_simple_callable(obj):
295 """True if obj is a function ()"""
296 return (inspect.isfunction(obj) or inspect.ismethod(obj) or \
297 isinstance(obj, _builtin_func_type) or isinstance(obj, _builtin_meth_type))
298
299def _get_wrapped(obj):
300 """Get the original object if wrapped in one or more @decorators

Callers 2

infoMethod · 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…