Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Square (0.15 sec)

  1. tests/test_tuples.py

        y: float
    
    
    @app.post("/model-with-tuple/")
    def post_model_with_tuple(item_group: ItemGroup):
        return item_group
    
    
    @app.post("/tuple-of-models/")
    def post_tuple_of_models(square: Tuple[Coordinate, Coordinate]):
        return square
    
    
    @app.post("/tuple-form/")
    def hello(values: Tuple[int, int] = Form()):
        return values
    
    
    client = TestClient(app)
    
    
    def test_model_with_tuple_valid():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.8K bytes
    - Viewed (0)
Back to top