Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
65
def
_is_async_func(func):
66
if
getattr(func,
'__code__'
, None):
67
return
iscoroutinefunction(func)
68
else
:
69
return
False
70
71
72
def
_is_instance_mock(obj):
Callers
1
create_autospec
Function · 0.85
Calls
1
iscoroutinefunction
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…