Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

395 B
Raw Blame
"""Inspect Celery execution options omitted by the installed Task type stubs."""

from typing import Protocol, runtime_checkable


@runtime_checkable
class TaskWithExecutionOptions(Protocol):
    def _get_exec_options(self) -> dict[str, object]: ...


def task_options(task: object) -> dict[str, object]:
    assert isinstance(task, TaskWithExecutionOptions)
    return task._get_exec_options()