Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,825 for note (0.24 sec)

  1. tests/test_tutorial/test_async_sql_databases/test_tutorial001.py

        with TestClient(app) as client:
            note = {"text": "Foo bar", "completed": False}
            response = client.post("/notes/", json=note)
            assert response.status_code == 200, response.text
            data = response.json()
            assert data["text"] == note["text"]
            assert data["completed"] == note["completed"]
            assert "id" in data
            response = client.get("/notes/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 6K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/async-sql-databases.md

    ```
    
    !!! Note "笔记"
    
        注意,本例与数据库通信时使用 `await`,因此要把*路径操作函数*声明为异步函数(`asnyc`)。
    
    ### 关于 `{**note.dict(), "id": last_record_id}`
    
    `note` 是 Pydantic `Note` 对象:
    
    `note.dict()` 返回包含如下数据的**字典**:
    
    ```Python
    {
        "text": "Some note",
        "completed": False,
    }
    ```
    
    但它不包含 `id` 字段。
    
    因此要新建一个包含 `note.dict()` 键值对的**字典**:
    
    ```Python
    {**note.dict()}
    ```
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:44:40 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/async-sql-encode-databases.md

    !!! note
        Notice that as we communicate with the database using `await`, the *path operation function* is declared with `async`.
    
    ### About `{**note.dict(), "id": last_record_id}`
    
    `note` is a Pydantic `Note` object.
    
    `note.dict()` returns a `dict` with its data, something like:
    
    ```Python
    {
        "text": "Some note",
        "completed": False,
    }
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Ordering.java

       * but not the other, the shorter iterable is considered to be less than the longer one. For
       * example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1, 1] <
       * [1, 2] < [2]}.
       *
       * <p>Note that {@code ordering.lexicographical().reverse()} is not equivalent to {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Multiset.java

       *
       * <p><b>Note:</b> this method does not return the number of <i>distinct elements</i> in the
       * multiset, which is given by {@code entrySet().size()}.
       */
      @Override
      int size();
    
      /**
       * Returns the number of occurrences of an element in this multiset (the <i>count</i> of the
       * element). Note that for an {@link Object#equals}-based multiset, this gives the same result as
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/devel.usertools/code_check_changed_files.bats

            git diff --diff-filter ACMRT --name-only pull_branch^ pull_branch > $BATS_FILE_TMPDIR/changed_files
        else
            # If the branch is not present, then diff against origin/master
            git diff --diff-filter ACMRT --name-only origin/master > $BATS_FILE_TMPDIR/changed_files
        fi
    }
    
    # Note: this is excluded on the full code base, since any submitted code must
    # have passed Google's internal style guidelines.
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  7. manifests/charts/istio-cni/values.yaml

          # deletePods will delete any broken pod. These will then be rescheduled, hopefully onto a node that is fully ready.
          # Note this gives the DaemonSet a relatively high privilege, as it can delete any Pod.
          deletePods: false
          # repairPods will dynamically repair any broken pod by setting up the pod networking configuration even after it has started.
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.2K bytes
    - Viewed (1)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/Node.java

         */
        @Nullable
        Dependency getDependency();
    
        /**
         * Gets the child nodes of this node.
         *
         * @return the child nodes of this node, never {@code null}
         */
        @Nonnull
        List<Node> getChildren();
    
        /**
         * @return repositories of this node
         */
        @Nonnull
        List<RemoteRepository> getRemoteRepositories();
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Dec 08 08:42:44 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java

        /**
         * Returns the range of this constraint, or {@code null} if none.
         * <p>
         * Note: only one, this method or {@link #getRecommendedVersion()} method must return non-{@code null} value.
         */
        @Nullable
        VersionRange getVersionRange();
    
        /**
         * Returns the recommended version of this constraint, or {@code null} if none.
         * <p>
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  10. docs/fr/docs/tutorial/query-params-str-validations.md

    ```
    
    Le paramètre de requête `q` a pour type `Union[str, None]` (ou `str | None` en Python 3.10), signifiant qu'il est de type `str` mais pourrait aussi être égal à `None`, et bien sûr, la valeur par défaut est `None`, donc **FastAPI** saura qu'il n'est pas requis.
    
    !!! note
        **FastAPI** saura que la valeur de `q` n'est pas requise grâce à la valeur par défaut `= None`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
Back to top