Browse Source
- Introduced a new helper function `_contains_response` to check for response types in return annotations, improving the inference logic in `APIRoute`. - Updated the `infer_response_model_from_ast` function to prevent model creation when all fields are of type `Any`, ensuring better type information and avoiding unnecessary overrides.pull/14446/head
2 changed files with 23 additions and 1 deletions
Loading…
Reference in new issue