I need some obscure python help, fellow mastodonians:
I have a nested async function inside a regular function.
I need to test whether to await on it inside a decorator, but neither of `inspect` or `asyncio` helpers work, and .__code__.co_flags do not indicate it being a coroutine/awaitable/...
Right now I've added a flag to my decorator to manually control wrapped function behavior, but it's just a workaround.
Any tips? Thanks.