[Chore/Refactor] Tighten variable truncator typing #19771

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

Originally created by @laipz8200 on GitHub (Oct 21, 2025).

Originally assigned to: @laipz8200 on GitHub.

  • I have read the Contributing Guide and Language Policy.
  • This is only for refactoring; for questions I will use Discussions.
  • I have searched for existing issues, including closed ones.
  • I confirm that I am using English to submit this report.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Description

The variable truncation service still declares JSON collections with bare list and dict annotations, which leaves type intent unknown and triggers static analysis warnings during type checking.

Motivation

Strengthening these annotations keeps the backend aligned with the project's strong typing guidelines and prevents future regressions in type-checking and lint workflows.

Originally created by @laipz8200 on GitHub (Oct 21, 2025). Originally assigned to: @laipz8200 on GitHub. - [x] I have read the Contributing Guide and Language Policy. - [x] This is only for refactoring; for questions I will use Discussions. - [x] I have searched for existing issues, including closed ones. - [x] I confirm that I am using English to submit this report. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Description The variable truncation service still declares JSON collections with bare `list` and `dict` annotations, which leaves type intent unknown and triggers static analysis warnings during type checking. ### Motivation Strengthening these annotations keeps the backend aligned with the project's strong typing guidelines and prevents future regressions in type-checking and lint workflows.
yindo closed this issue 2026-02-21 20:03:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19771