mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-23 08:25:57 +00:00
Potential fix for pull request finding 'Unused import'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
@@ -18,7 +18,8 @@ from deerflow.persistence.base import Base
|
|||||||
|
|
||||||
# Import all models so metadata is populated.
|
# Import all models so metadata is populated.
|
||||||
try:
|
try:
|
||||||
import deerflow.persistence.models # noqa: F401 — register ORM models with Base.metadata
|
import deerflow.persistence.models as models # register ORM models with Base.metadata
|
||||||
|
_ = models
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Models not available — migration will work with existing metadata only.
|
# Models not available — migration will work with existing metadata only.
|
||||||
logging.getLogger(__name__).warning("Could not import deerflow.persistence.models; Alembic may not detect all tables")
|
logging.getLogger(__name__).warning("Could not import deerflow.persistence.models; Alembic may not detect all tables")
|
||||||
|
|||||||
Reference in New Issue
Block a user