Skip to content

refactor(api): type Celery SSL options and Sentinel transport dicts with TypedDicts#34871

Merged
asukaminato0721 merged 1 commit intolanggenius:mainfrom
dataCenter430:refactor/type-celery-ssl-sentinel-dicts
Apr 10, 2026
Merged

refactor(api): type Celery SSL options and Sentinel transport dicts with TypedDicts#34871
asukaminato0721 merged 1 commit intolanggenius:mainfrom
dataCenter430:refactor/type-celery-ssl-sentinel-dicts

Conversation

@dataCenter430
Copy link
Copy Markdown
Contributor

Part of #32863

Summary

  • Add CelerySSLOptionsDict TypedDict, annotate get_celery_ssl_options return type
  • Add _CelerySentinelKwargsDict and CelerySentinelTransportDict TypedDicts, annotate get_celery_broker_transport_options return type

Why this change

Both functions return fixed-key dicts typed as dict[str, Any]. The TypedDicts make the SSL cert fields and Sentinel master/kwargs structure explicit and checkable.

Changes

  • api/extensions/ext_celery.py: Define CelerySSLOptionsDict, _CelerySentinelKwargsDict, CelerySentinelTransportDict; update both function return types

Test plan

  • ruff check passes

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. refactor labels Apr 9, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 9, 2026

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 a31c1d2 Apr 10, 2026
26 of 27 checks passed
dataCenter430 added 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