(obj)
| 55 | _safe_super = super |
| 56 | |
| 57 | def _is_async_obj(obj): |
| 58 | if _is_instance_mock(obj) and not isinstance(obj, AsyncMock): |
| 59 | return False |
| 60 | if hasattr(obj, '__func__'): |
| 61 | obj = getattr(obj, '__func__') |
| 62 | return iscoroutinefunction(obj) or inspect.isawaitable(obj) |
| 63 | |
| 64 | |
| 65 | def _is_async_func(func): |
no test coverage detected
searching dependent graphs…