async def test_async_detection(fn, expected): is_async = is_async_fn(fn) assert is_async is expected
async def test_detection_for_none(): is_async = is_async_fn(None) assert not is_async
async def test_async_detection(fn, expected): is_async = is_async_fn(fn) assert is_async is expected
async def test_detection_for_none(): is_async = is_async_fn(None) assert not is_async