Circular import with beanie ODM
Circular import with beanie ODM Question: I need to use a cross-reference in my MongoDB schema. I use beanie as ODM. Here is my models: entity.py from beanie import Document class Entity(Document): path: List["Folder"] = [] folder.py from entity import Entity class Folder(Entity) pass init_beanie.py import beanie from motor.motor_asyncio import AsyncIOMotorClient from entity import Entity …