The nest-asyncio dependency resolved the RuntimeErrors in the async ORM, but it introduced sporadic ResourceWarnings. A better solution is needed in the long term. Possibilities:
Fork nest-asyncio, fix the issue, and publish a new package. Assumes that the problem is fixable in the nest-asyncio code.
Re-engineer the async ORM to return coroutines from properties and make property setters asynchronous. Getting good type hints may be difficult.
If I think of more possibilities for fixing this, I will add them here.
The
nest-asyncio
dependency resolved theRuntimeError
s in the async ORM, but it introduced sporadicResourceWarning
s. A better solution is needed in the long term. Possibilities:If I think of more possibilities for fixing this, I will add them here.