(obj)
| 83 | |
| 84 | |
| 85 | def _is_local_callable(obj): |
| 86 | if isinstance(obj, type): |
| 87 | return _is_local_class(obj) |
| 88 | if isinstance(obj, (types.MethodType, types.BuiltinMethodType)): |
| 89 | receiver = getattr(obj, "__self__", None) |
| 90 | if receiver is not None and not inspect.ismodule(receiver): |
| 91 | return _is_local_receiver(receiver) |
| 92 | module_name = getattr(obj, "__module__", "") |
| 93 | qualname = getattr(obj, "__qualname__", getattr(obj, "__name__", "")) |
| 94 | return _is_local_qualname(module_name, qualname) |
| 95 | |
| 96 | |
| 97 | def _is_bound_method_value(obj): |
no test coverage detected