Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for no_response_model_annotation_response_class (0.11 sec)

  1. tests/test_response_model_as_return_annotation.py

    def no_response_model_annotation_union_return_model2() -> Union[User, Item]:
        return Item(name="Foo", price=42.0)
    
    
    @app.get("/no_response_model-annotation_response_class")
    def no_response_model_annotation_response_class() -> Response:
        return Response(content="Foo")
    
    
    @app.get("/no_response_model-annotation_json_response_class")
    def no_response_model_annotation_json_response_class() -> JSONResponse:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 47.7K bytes
    - Viewed (0)
Back to top