fix: more accurate type

https://github.com/llamastack/llama-stack/pull/4191#discussion_r2557389025

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-11-25 10:57:27 +01:00
parent b0b3034f16
commit 3dc5b5d3a0
No known key found for this signature in database

View file

@ -10,6 +10,7 @@ This module provides utilities to create FastAPI routers from API packages.
APIs with routers are explicitly listed here.
"""
from collections.abc import Callable
from typing import Any, cast
from fastapi import APIRouter
@ -19,7 +20,7 @@ from fastapi import APIRouter
from llama_stack_api.batches.fastapi_routes import create_router as create_batches_router
from llama_stack_api.datatypes import Api
_ROUTER_FACTORIES: dict[str, Any] = {
_ROUTER_FACTORIES: dict[str, Callable[[Any], APIRouter]] = {
"batches": create_batches_router,
}