Fix parent SQLAlchemy type annotation again

This commit is contained in:
2026-04-02 19:30:43 +02:00
parent f4526c0123
commit 400f344d89

View File

@@ -42,7 +42,7 @@ class CvVersion(Base, IdentifierMixin, TimestampMixin):
metadata_json: Mapped[dict | None] = mapped_column(JSONB, default=dict)
document: Mapped[CvDocument] = relationship("CvDocument", back_populates="versions")
parent: Mapped["CvVersion"] | None = relationship(
parent: Mapped["CvVersion | None"] = relationship(
"CvVersion", remote_side="[CvVersion.id]"
)
patches: Mapped[list["CvPatch"]] = relationship("CvPatch", back_populates="version")