From 9b4e4df2d872784e859a0c902fb19d05b5f2cfaf Mon Sep 17 00:00:00 2001 From: JONEMI21 Date: Fri, 7 Nov 2025 09:32:52 +0000 Subject: [PATCH] add typing --- fastapi/dependencies/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index 1aa78c4e2..cb4b7043a 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -12,6 +12,7 @@ from typing import ( Mapping, Optional, Sequence, + Set, Tuple, Type, Union, @@ -701,7 +702,7 @@ async def solve_dependencies( ) -def _extract_error_locs(errors_): +def _extract_error_locs(errors_: Sequence[Any] | List[Dict[str, Any]]) -> Set[str]: if isinstance(errors_, list): errors_ = may_v1._regenerate_error_with_loc(errors=errors_, loc_prefix=())