Browse Source

add typing

pull/9837/head
JONEMI21 8 months ago
parent
commit
9b4e4df2d8
  1. 3
      fastapi/dependencies/utils.py

3
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=())

Loading…
Cancel
Save