Compare commits

...

2 Commits

Author SHA1 Message Date
alex 8ef98eab94 merge: fix ToolDefinitionManifest runtime import in ToolType 2026-06-03 13:21:06 +02:00
alex 14e636ff1c 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.
2026-06-03 13:20:34 +02:00
+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