Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ _is_async_func
Function
_is_async_func
tools/python-3.11.9-amd64/Lib/unittest/mock.py:61–65 ·
view source on GitHub ↗
(func)
Source
from the content-addressed store, hash-verified
59
60
61
def
_is_async_func(func):
62
if
getattr(func,
'__code__'
, None):
63
return
iscoroutinefunction(func)
64
else
:
65
return
False
66
67
68
def
_is_instance_mock(obj):
Callers
1
create_autospec
Function · 0.85
Calls
1
iscoroutinefunction
Function · 0.90
Tested by
no test coverage detected