Skip to content

Commit 1feef7b

Browse files
fix(openapi): support mypy native parser on Python 3.10
1 parent 7db0403 commit 1feef7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • aws_lambda_powertools/event_handler/openapi

‎aws_lambda_powertools/event_handler/openapi/params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ def get_field_info_annotated_type(annotation, value, is_path_param: bool) -> tup
10591059
# Reconstruct type_annotation with non-FieldInfo metadata if present
10601060
# This ensures constraints like Interval are preserved
10611061
if other_metadata and not preserve_full_annotation:
1062-
type_annotation = Annotated[(type_annotation, *other_metadata)]
1062+
type_annotation = Annotated[(type_annotation,) + tuple(other_metadata)]
10631063

10641064
# Process the annotation if it exists
10651065
field_info: FieldInfo | None = None

0 commit comments

Comments
 (0)