Try to remove imports and use string literals. Reffering to Import cycles.
Smth like this:
class Parent(Base): ... children: Mapped[list["Child"]] = relationship("Child", back_populates="parent")