fix: import ToolDefinitionManifest at runtime in ToolType model

Move the ToolDefinitionManifest import out of TYPE_CHECKING so SQLAlchemy
can resolve the string-annotated relationship when configuring the ToolType
mapper during startup.

Quality gates: py_compile and ruff passed.
This commit is contained in:
2026-06-03 13:20:34 +02:00
parent 6a1d007540
commit 14e636ff1c
+2 -1
View File
@@ -6,8 +6,9 @@ from sqlalchemy.orm import Mapped, mapped_column, relationship
from src.models.base import Base, TimestampMixin, UUIDPrimaryKeyMixin
from src.models.tool_definition_manifest import ToolDefinitionManifest
if TYPE_CHECKING:
from src.models.tool_definition_manifest import ToolDefinitionManifest
from src.models.user import User