Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for empty (0.12 sec)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an_py39.py

                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    @needs_py39
    def test_post_body_empty_list(client: TestClient):
        response = client.put("/items/5", json=[])
        assert response.status_code == 422
        assert response.json() == IsDict(
            {
                "detail": [
                    {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. configure.py

                question=None,
                yes_reply=None,
                no_reply=None):
      """Get boolean input from user.
    
      If var_name is not set in env, ask user to enable query_item or not. If the
      response is empty, use the default.
    
      Args:
        environ_cp: copy of the os.environ.
        var_name: string for name of environment variable, e.g. "TF_NEED_CUDA".
        query_item: string for feature related to the variable, e.g. "CUDA for
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  3. fastapi/applications.py

                    browser to interact with each of them (instead of having multiple
                    browser tabs open). Or if you want to leave fixed the possible URLs.
    
                    If the servers `list` is not provided, or is an empty `list`, the
                    default value would be a `dict` with a `url` value of `/`.
    
                    Each item in the `list` is a `dict` containing:
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  4. fastapi/routing.py

                    name = getattr(r, "name", "unknown")
                    if path is not None and not path:
                        raise FastAPIError(
                            f"Prefix and path cannot be both empty (path operation: {name})"
                        )
            if responses is None:
                responses = {}
            for route in router.routes:
                if isinstance(route, APIRoute):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
Back to top