fix: tighten binder/app route annotations (FastAPI/ModuleType); sync binder.pyi with signature; refresh MCP docs

This commit is contained in:
2026-09-14 00:04:23 +05:30
parent 48fd6627a7
commit adeb02e162
6 changed files with 68 additions and 31 deletions

View File

@@ -34,6 +34,7 @@ Notes:
import os
import re
from types import ModuleType
from typing import Any
from fastapi import FastAPI
@@ -106,7 +107,7 @@ class OpenAPIFirstApp(FastAPI):
self,
*,
openapi_path: str,
routes_module: Any,
routes_module: ModuleType,
**fastapi_kwargs: Any,
):
"""
@@ -116,7 +117,7 @@ class OpenAPIFirstApp(FastAPI):
openapi_path (str):
Filesystem path to the OpenAPI 3.x specification file. This
specification is treated as the authoritative API contract.
routes_module (Any):
routes_module (ModuleType):
Python module containing handler functions whose names correspond
exactly to OpenAPI ``operationId`` values.
**fastapi_kwargs (Any):