True if obj is a function ()
(obj)
| 292 | |
| 293 | |
| 294 | def 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 | |
| 299 | def _get_wrapped(obj): |
| 300 | """Get the original object if wrapped in one or more @decorators |
no outgoing calls
no test coverage detected
searching dependent graphs…