diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 1ff4c2483e..667fb4fb64 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -240,7 +240,7 @@ def get_typed_signature(call: Callable[..., Any]) -> inspect.Signature: return typed_signature -class _LenientDict(dict): +class _LenientDict(dict[str, Any]): """Dict subclass where missing keys resolve to Any. Used as an eval namespace so that undefined forward references (e.g. a