fix: tighten binder/app route annotations (FastAPI/ModuleType); sync binder.pyi with signature; refresh MCP docs
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user