(obj)
| 51 | _safe_super = super |
| 52 | |
| 53 | def _is_async_obj(obj): |
| 54 | if _is_instance_mock(obj) and not isinstance(obj, AsyncMock): |
| 55 | return False |
| 56 | if hasattr(obj, '__func__'): |
| 57 | obj = getattr(obj, '__func__') |
| 58 | return iscoroutinefunction(obj) or inspect.isawaitable(obj) |
| 59 | |
| 60 | |
| 61 | def _is_async_func(func): |
no test coverage detected