diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index cb4b7043a..0764f8a93 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -702,7 +702,7 @@ async def solve_dependencies( ) -def _extract_error_locs(errors_: Sequence[Any] | List[Dict[str, Any]]) -> Set[str]: +def _extract_error_locs(errors_: Sequence[Any]) -> Set[str]: if isinstance(errors_, list): errors_ = may_v1._regenerate_error_with_loc(errors=errors_, loc_prefix=())