Skip to content

Commit

Permalink
Fix syntax of Union
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Jan 9, 2025
1 parent d27f124 commit 042d4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esmerald/transformers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def get_field_definition_from_param(param: "Parameter") -> Tuple[Any, Any]:
the Any type. This is necessary because the signature model will be
generated before the actual type is resolved.
"""
annotation: Any | FieldInfo
annotation: Union[Any, FieldInfo]

if param.optional:
annotation = should_skip_json_schema(param)
Expand Down

0 comments on commit 042d4c6

Please sign in to comment.