File "--snip--/lib/python3.8/site-packages/async_property/base.py", line 10, in async_property
assert is_coroutine(func), 'Can only use with async def'
AssertionError: Can only use with async def
Any hint on the best way to do that ?
I can make a PR if needed.
Description
I'm trying to use
async_property
on an async generator. The goal is to allow using a property on an async loop constructor like so:What I Did
Error:
Any hint on the best way to do that ? I can make a PR if needed.