Files
dify/api/core/workflow/file
WH-2099 3cd41f9447 fix(workflow-file): satisfy basedpyright for runtime protocol wiring
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.
2026-02-12 15:34:20 +08:00
..