Skip to content

Commit 851992f

Browse files
small changes
1 parent 96ab0a6 commit 851992f

File tree

1 file changed

+3
-3
lines changed
  • aws_lambda_powertools/event_handler/openapi

1 file changed

+3
-3
lines changed

aws_lambda_powertools/event_handler/openapi/params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,13 +1125,13 @@ def get_field_info_annotated_type(annotation, value, is_path_param: bool) -> tup
11251125

11261126
# Process the annotation if it exists
11271127
field_info: FieldInfo | None = None
1128-
if isinstance(powertools_annotation, FieldInfo):
1128+
if isinstance(powertools_annotation, FieldInfo): # pragma: no cover
11291129
field_info = _create_field_info(powertools_annotation, type_annotation, has_discriminator_with_param)
11301130
_set_field_default(field_info, value, is_path_param)
11311131

11321132
# Preserve full annotated type for discriminated unions
1133-
if _has_discriminator(powertools_annotation):
1134-
type_annotation = annotation
1133+
if _has_discriminator(powertools_annotation): # pragma: no cover
1134+
type_annotation = annotation # pragma: no cover
11351135

11361136
return field_info, type_annotation
11371137

0 commit comments

Comments
 (0)