Skip to content

Commit c281525

Browse files
committed
fix: mypy
1 parent 1a3a73b commit c281525

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_powertools/event_handler/middlewares/openapi_validation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def _get_embed_body(
371371
def _normalize_multi_query_string_with_param(
372372
query_string: Optional[Dict[str, List[str]]],
373373
params: Sequence[ModelField],
374-
) -> Optional[Dict[str, Any]]:
374+
) -> Dict[str, Any]:
375375
"""
376376
Extract and normalize resolved_query_string_parameters
377377
@@ -387,7 +387,7 @@ def _normalize_multi_query_string_with_param(
387387
A dictionary containing the processed multi_query_string_parameters.
388388
"""
389389
if not query_string:
390-
return None
390+
return {}
391391
else:
392392
resolved_query_string: Dict[str, Any] = query_string
393393
for param in filter(is_scalar_field, params):

0 commit comments

Comments
 (0)