add typing

This commit is contained in:
JONEMI21 2025-11-07 09:32:52 +00:00
parent 61b683e562
commit 9b4e4df2d8
1 changed files with 2 additions and 1 deletions

View File

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