add_pydantic_string_annotations
Add two numbers, but with string-annotated Pydantic models (future.annotations bug).
def add_pydantic_string_annotations(
data: AddParameterModel
) - > AddResultModel
Add two numbers, but with string-annotated Pydantic models (future.annotations bug).
Parameters
| Name | Type | Description |
|---|---|---|
| data | AddParameterModel | A Pydantic model containing the two numeric values (x and y) to be added |
Returns
| Type | Description |
|---|---|
AddResultModel | A model containing the sum of the two input numbers stored in the result field |