- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for no_response_model_annotation_union_return_model2 (0.18 seconds)
-
tests/test_response_model_as_return_annotation.py
@app.get("/no_response_model-annotation_union-return_model1") def no_response_model_annotation_union_return_model1() -> Union[User, Item]: return DBUser(name="John", surname="Doe", password_hash="secret") @app.get("/no_response_model-annotation_union-return_model2") def no_response_model_annotation_union_return_model2() -> Union[User, Item]: return Item(name="Foo", price=42.0)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 47.7K bytes - Click Count (0)