MCPcopy Index your code
hub / github.com/python/cpython / _is_async_func

Function _is_async_func

Lib/unittest/mock.py:65–69  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

63
64
65def _is_async_func(func):
66 if getattr(func, '__code__', None):
67 return iscoroutinefunction(func)
68 else:
69 return False
70
71
72def _is_instance_mock(obj):

Callers 1

create_autospecFunction · 0.85

Calls 1

iscoroutinefunctionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…