[PR #30666] refactor: remove unnecessary type: ignore from rag_pipeline_fields.py #32919

Closed
opened 2026-02-21 20:52:19 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30666

State: closed
Merged: Yes


Summary

Remove the unnecessary # type: ignore comment from the flask_restx import in api/fields/rag_pipeline_fields.py.

Why

  • The # type: ignore comment on this import is unnecessary
  • Other files in the codebase import from flask_restx without type: ignore comments (e.g., fields/data_source_fields.py, fields/api_based_extension_fields.py, libs/helper.py)
  • Type check passes without this comment

Test plan

  • make type-check passes (0 errors)
  • make lint passes
  • All unit tests pass (4820 passed)

Part of #24494

**Original Pull Request:** https://github.com/langgenius/dify/pull/30666 **State:** closed **Merged:** Yes --- ## Summary Remove the unnecessary `# type: ignore` comment from the flask_restx import in `api/fields/rag_pipeline_fields.py`. ## Why - The `# type: ignore` comment on this import is unnecessary - Other files in the codebase import from `flask_restx` without type: ignore comments (e.g., `fields/data_source_fields.py`, `fields/api_based_extension_fields.py`, `libs/helper.py`) - Type check passes without this comment ## Test plan - [x] `make type-check` passes (0 errors) - [x] `make lint` passes - [x] All unit tests pass (4820 passed) Part of #24494
yindo added the pull-request label 2026-02-21 20:52:19 -05:00
yindo closed this issue 2026-02-21 20:52:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32919