Files
Danglewood 869cfed125 [Release] openbb-v5.0.0 (#7741)
* merge branch develop with main

* bump desktop version

* fix the merge

* sync Cargo.lock to desktop 2.0.0

* fix cli conftest.py

---------

Co-authored-by: deeleeramone <>
2026-09-29 10:58:44 -07:00

21 lines
618 B
Python

"""Dispatcher Protocol — the shared interface for Local and Http backends."""
from __future__ import annotations
from typing import Protocol, runtime_checkable
from openbb_cli.dispatchers.protocol import Request, Response
@runtime_checkable
class Dispatcher(Protocol):
"""Async dispatcher contract."""
async def dispatch(self, request: Request) -> Response:
"""Resolve and run the command described by ``request``."""
... # pragma: no cover
async def aclose(self) -> None:
"""Release any held resources (HTTP clients, connection pools)."""
... # pragma: no cover