Skip to content

Commit d7734a9

Browse files
committed
chore(pydantic_async_validation): ♻️ Fix issue with 'loc' maybe unset reported by pyright
1 parent d208a30 commit d7734a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_async_validation/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def prefix_errors(
188188
if isinstance(error['type'], str)
189189
else error['type']
190190
),
191-
'loc': (*prefix, *error['loc']),
191+
'loc': (*prefix, *error.get('loc', [])),
192192
},
193193
)
194194
if "msg" in error

0 commit comments

Comments
 (0)