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