mirror of https://github.com/tiangolo/fastapi.git
add typing
This commit is contained in:
parent
61b683e562
commit
9b4e4df2d8
|
|
@ -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…
Reference in New Issue