From 32fa817eaa3642b8d1d4d6f65c605c6f8cf6e9cd Mon Sep 17 00:00:00 2001 From: Yongtao Huang Date: Sat, 16 Aug 2025 19:29:19 +0800 Subject: [PATCH] Update mypy.ini (#24014) Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- api/events/{event_handlers => }/document_index_event.py | 0 api/events/event_handlers/create_document_index.py | 2 +- api/mypy.ini | 3 +-- 3 files changed, 2 insertions(+), 3 deletions(-) rename api/events/{event_handlers => }/document_index_event.py (100%) 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 bdb69945f..c607161e2 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 6836b2602..3a6a54afe 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/ )