Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 281 - 290 of 919 for tip (0.01 seconds)

  1. docs/en/docs/tutorial/handling-errors.md

    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip
    
    When raising an `HTTPException`, you can pass any value that can be converted to JSON as the parameter `detail`, not only `str`.
    
    You could pass a `dict`, a `list`, etc.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Comparators.java

       */
      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
      // desired return type. However, *nested* generics introduce a special class of problems that we
      // think tip it over into being worthwhile.
      public static <T extends @Nullable Object, S extends T> Comparator<Iterable<S>> lexicographical(
          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/security/first-steps.md

    ///
    
    當我們建立 `OAuth2PasswordBearer` 類別的實例時,會傳入 `tokenUrl` 參數。這個參數包含了客戶端(在使用者瀏覽器中執行的前端)用來送出 `username` 與 `password` 以取得 token 的 URL。
    
    {* ../../docs_src/security/tutorial001_an_py310.py hl[8] *}
    
    /// tip
    
    這裡的 `tokenUrl="token"` 指的是尚未建立的相對 URL `token`。因為是相對 URL,所以等同於 `./token`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/security/first-steps.md

    在那种情况下,**FastAPI** 同样提供了相应的构建工具。
    
    ///
    
    创建 `OAuth2PasswordBearer` 类实例时,需要传入 `tokenUrl` 参数。该参数包含客户端(运行在用户浏览器中的前端)用来发送 `username` 和 `password` 以获取令牌的 URL。
    
    {* ../../docs_src/security/tutorial001_an_py310.py hl[8] *}
    
    /// tip | 提示
    
    这里的 `tokenUrl="token"` 指向的是尚未创建的相对 URL `token`,等价于 `./token`。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  5. docs/ja/docs/advanced/stream-data.md

    ///
    
    イベントループのブロッキングを避けるには、path operation 関数を `async def` ではなく通常の `def` で宣言してください。そうすると FastAPI はその関数をスレッドプールワーカー上で実行し、メインループのブロッキングを避けます。
    
    {* ../../docs_src/stream_data/tutorial002_py310.py ln[30:34] hl[31] *}
    
    /// tip | 豆知識
    
    async 関数内からブロッキングなコードを呼び出す必要がある場合、あるいはブロッキングな関数内から async 関数を呼び出す必要がある場合は、FastAPI の兄弟ライブラリである [Asyncer](https://asyncer.tiangolo.com) を利用できます。
    
    ///
    
    ### `yield from` { #yield-from }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:55:22 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  6. docs/ja/docs/tutorial/security/oauth2-jwt.md

    推奨されるアルゴリズムは「Argon2」です。
    
    [仮想環境](../../virtual-environments.md)を作成し、アクティベートしてから、Argon2付きでpwdlibをインストールしてください。
    
    <div class="termy">
    
    ```console
    $ pip install "pwdlib[argon2]"
    
    ---> 100%
    ```
    
    </div>
    
    /// tip | 豆知識
    
    `pwdlib`を使用すると、**Django**や**Flask**のセキュリティプラグインなどで作成されたパスワードを読み取れるように設定できます。
    
    例えば、Djangoアプリケーションからデータベース内の同じデータをFastAPIアプリケーションと共有できるだけではなく、同じデータベースを使用してDjangoアプリケーションを徐々に移行することもできます。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.6K bytes
    - Click Count (1)
  7. docs/zh/docs/tutorial/body-nested-models.md

    如果你想接收一些尚且未知的键,这将很有用。
    
    ---
    
    其他有用的场景是当你想要接收其他类型的键时,例如 `int`。
    
    这也是我们在接下来将看到的。
    
    在下面的例子中,你将接受任意键为 `int` 类型并且值为 `float` 类型的 `dict`:
    
    {* ../../docs_src/body_nested_models/tutorial009_py310.py hl[7] *}
    
    /// tip | 提示
    
    请记住 JSON 仅支持将 `str` 作为键。
    
    但是 Pydantic 具有自动转换数据的功能。
    
    这意味着,即使你的 API 客户端只能将字符串作为键发送,只要这些字符串内容仅包含整数,Pydantic 就会对其进行转换并校验。
    
    然后你接收的名为 `weights` 的 `dict` 实际上将具有 `int` 类型的键和 `float` 类型的值。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/Comparators.java

       */
      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
      // desired return type. However, *nested* generics introduce a special class of problems that we
      // think tip it over into being worthwhile.
      public static <T extends @Nullable Object, S extends T> Comparator<Iterable<S>> lexicographical(
          Comparator<T> comparator) {
        return new LexicographicalOrdering<S>(checkNotNull(comparator));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  9. docs/en/docs/python-types.md

    For now, you just need to know that `Annotated` exists, and that it's standard Python. 😎
    
    Later you will see how **powerful** it can be.
    
    /// tip
    
    The fact that this is **standard Python** means that you will still get the **best possible developer experience** in your editor, with the tools you use to analyze and refactor your code, etc. ✨
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  10. docs/en/docs/_llm-test.md

    //// tab | Test
    
    /// info
    Some text
    ///
    
    /// note
    Some text
    ///
    
    /// note | Technical details
    Some text
    ///
    
    /// check
    Some text
    ///
    
    /// tip
    Some text
    ///
    
    /// warning
    Some text
    ///
    
    /// danger
    Some text
    ///
    
    ////
    
    //// tab | Info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
Back to Top