mirror of
https://github.com/langgenius/dify.git
synced 2026-03-16 04:17:43 +08:00
Align workflow file runtime protocols with actual httpx response behavior so strict type checks pass consistently in CI. Changes - Update HttpResponseProtocol.content to a read-only property, matching httpx.Response semantics. - Relax HttpResponseProtocol.raise_for_status return type to object, compatible with httpx returning self. - Mark _UnconfiguredWorkflowFileRuntime._raise as NoReturn to remove false positive "must return value on all code paths" errors for protocol methods. Context - Fixes type-check failures from basedpyright on: - core/app/workflow/file_runtime.py - core/workflow/file/runtime.py Verification - basedpyright on touched workflow-file modules reports 0 errors.