(obj)
| 152 | |
| 153 | |
| 154 | def _callable(obj): |
| 155 | if isinstance(obj, type): |
| 156 | return True |
| 157 | if isinstance(obj, (staticmethod, classmethod, MethodType)): |
| 158 | return _callable(obj.__func__) |
| 159 | if getattr(obj, '__call__', None) is not None: |
| 160 | return True |
| 161 | return False |
| 162 | |
| 163 | |
| 164 | def _is_list(obj): |
no outgoing calls
searching dependent graphs…