Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Update mypy.ini (#24014)

Yongtao Huang32fa817eaa36
diff --git a/api/events/event_handlers/document_index_event.py b/api/events/document_index_event.py
similarity index 100%
rename from api/events/event_handlers/document_index_event.py
rename to api/events/document_index_event.py
diff --git a/api/events/event_handlers/create_document_index.py b/api/events/event_handlers/create_document_index.py
index bdb69945f0d..c607161e2a1 100644
--- a/api/events/event_handlers/create_document_index.py
+++ b/api/events/event_handlers/create_document_index.py
@@ -5,7 +5,7 @@ import click
from werkzeug.exceptions import NotFound
from core.indexing_runner import DocumentIsPausedError, IndexingRunner
-from events.event_handlers.document_index_event import document_index_created
+from events.document_index_event import document_index_created
from extensions.ext_database import db
from libs.datetime_utils import naive_utc_now
from models.dataset import Document
diff --git a/api/mypy.ini b/api/mypy.ini
index 6836b2602b7..3a6a54afe1c 100644
--- a/api/mypy.ini
+++ b/api/mypy.ini
@@ -5,8 +5,7 @@ check_untyped_defs = True
cache_fine_grained = True
sqlite_cache = True
exclude = (?x)(
- core/model_runtime/model_providers/
- | tests/
+ tests/
| migrations/
)