- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for response_model_union_no_annotation_return_model2 (0.3 sec)
-
tests/test_response_model_as_return_annotation.py
response_model=Union[User, Item], ) def response_model_union_no_annotation_return_model1(): return DBUser(name="John", surname="Doe", password_hash="secret") @app.get( "/response_model_union-no_annotation-return_model2", response_model=Union[User, Item], ) def response_model_union_no_annotation_return_model2(): return Item(name="Foo", price=42.0)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 14 09:49:57 UTC 2023 - 47.7K bytes - Viewed (0)