Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,430 for Mote (0.17 sec)

  1. 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 Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K 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. tests/test_tutorial/test_async_sql_databases/test_tutorial001.py

    @needs_pydanticv1
    def test_create_read(app: FastAPI):
        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 21 07:19:11 GMT 2024
    - Last Modified: Wed Oct 18 12:36:40 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. .github/PULL_REQUEST_TEMPLATE.md

    <!--
    If no, just write "NONE" in the release-note block below.
    If yes, a release note is required:
    Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
    
    For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
    -->
    ```release-note
    
    ```
    
    Plain Text
    - Registered: Fri Apr 19 09:05:10 GMT 2024
    - Last Modified: Sun Aug 01 08:59:21 GMT 2021
    - 2.8K bytes
    - Viewed (0)
  5. docs/en/docs/help-fastapi.md

    ## Vote for FastAPI
    
    * <a href="https://www.slant.co/options/34241/~fastapi-review" class="external-link" target="_blank">Vote for **FastAPI** in Slant</a>.
    * <a href="https://alternativeto.net/software/fastapi/" class="external-link" target="_blank">Vote for **FastAPI** in AlternativeTo</a>.
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  6. docs_src/async_sql_databases/tutorial001.py

    
    @app.post("/notes/", response_model=Note)
    async def create_note(note: NoteIn):
        query = notes.insert().values(text=note.text, completed=note.completed)
        last_record_id = await database.execute(query)
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 1.4K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/async-sql-databases.md

    ### 🔃 `{**note.dict(), "id": last_record_id}`
    
    `note` Pydantic `Note` 🎚.
    
    `note.dict()` 📨 `dict` ⏮️ 🚮 💽, 🕳 💖:
    
    ```Python
    {
        "text": "Some note",
        "completed": False,
    }
    ```
    
    ✋️ ⚫️ 🚫 ✔️ `id` 🏑.
    
    👥 ✍ 🆕 `dict`, 👈 🔌 🔑-💲 👫 ⚪️➡️ `note.dict()` ⏮️:
    
    ```Python
    {**note.dict()}
    ```
    
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ElementWarningsRenderer.java

                parent.appendChild(caution);
                Element para = document.createElement("para");
                caution.appendChild(para);
                para.appendChild(document.createTextNode(String.format("Note: This %s is ", type)));
                Element link = document.createElement("ulink");
                para.appendChild(link);
                link.setAttribute("url", "../userguide/feature_lifecycle.html");
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.8K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/devel.usertools/code_check_changed_files.bats

    setup_file() {
        cd /tf/tensorflow
        bazel version  # Start the bazel server
        # Without this, git errors if /tf/tensorflow directory owner is different
        git config --global --add safe.directory /tf/tensorflow
        # Note that you could generate a list of all the affected targets with e.g.:
        # bazel query $(paste -sd "+" $BATS_FILE_TMPDIR/changed_files) --keep_going
        # Only shows Added, Changed, Modified, Renamed, and Type-changed files
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Ordering.java

       * the first is returned.
       *
       * <p><b>Implementation note:</b> this method is invoked by the default implementations of the
       * other {@code min} overloads, so overriding it will affect their behavior.
       *
       * <p><b>Note:</b> Consider using {@code Comparators.min(a, b, thisComparator)} instead. If {@code
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 39.4K bytes
    - Viewed (0)
Back to top