Skip to content

refactor(api): type recommend app database retrieval dicts with TypedDicts#34873

Merged
asukaminato0721 merged 1 commit intolanggenius:mainfrom
YB0y:refactor/typed-dict-recommend-app-retrieval
Apr 10, 2026
Merged

refactor(api): type recommend app database retrieval dicts with TypedDicts#34873
asukaminato0721 merged 1 commit intolanggenius:mainfrom
YB0y:refactor/typed-dict-recommend-app-retrieval

Conversation

@YB0y
Copy link
Copy Markdown
Contributor

@YB0y YB0y commented Apr 10, 2026

Summary

  • Add RecommendedAppItemDict, RecommendedAppsResultDict, and RecommendedAppDetailDict TypedDicts to api/services/recommend_app/database/database_retrieval.py
  • Replace untyped dict returns with typed alternatives in fetch_recommended_apps_from_db and fetch_recommended_app_detail_from_db

Part of #32863

Test plan

  • basedpyright passes (0 errors)
  • mypy passes (0 errors in changed file)

@YB0y YB0y requested a review from QuantumGhost as a code owner April 10, 2026 00:16
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. refactor labels Apr 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

No changes detected.

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Apr 10, 2026
@asukaminato0721 asukaminato0721 added this pull request to the merge queue Apr 10, 2026
Merged via the queue into langgenius:main with commit 2352269 Apr 10, 2026
27 checks passed
dataCenter430 pushed a commit to dataCenter430/dify that referenced this pull request Apr 10, 2026
HanqingZ pushed a commit to HanqingZ/dify that referenced this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer refactor size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants