diff --git a/fastapi/routing.py b/fastapi/routing.py index b72c4ea1ed..35bad15578 100644 --- a/fastapi/routing.py +++ b/fastapi/routing.py @@ -91,6 +91,9 @@ from starlette.routing import Mount as Mount # noqa from starlette.types import AppType, ASGIApp, Lifespan, Receive, Scope, Send from starlette.websockets import WebSocket from typing_extensions import deprecated +import inspect +import weakref +from typing import Any, TypedDict # Copy of starlette.routing.request_response modified to include the