MCPcopy 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
61def _is_async_func(func):
62 if getattr(func, '__code__', None):
63 return iscoroutinefunction(func)
64 else:
65 return False
66
67
68def _is_instance_mock(obj):

Callers 1

create_autospecFunction · 0.85

Calls 1

iscoroutinefunctionFunction · 0.90

Tested by

no test coverage detected