Add two numbers, but with string-annotated Pydantic models (__future__.annotations bug).
(data: "AddParameterModel")
| 607 | |
| 608 | @shared_task(pydantic=True) |
| 609 | def add_pydantic_string_annotations(data: "AddParameterModel") -> "AddResultModel": |
| 610 | """Add two numbers, but with string-annotated Pydantic models (__future__.annotations bug).""" |
| 611 | value = data.x + data.y |
| 612 | return AddResultModel(result=value) |
| 613 | |
| 614 | |
| 615 | if LEGACY_TASKS_DISABLED: |
nothing calls this directly
no test coverage detected