Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 85 for Tuple1 (0.07 sec)

  1. docs/en/docs/tutorial/response-model.md

    It is equivalent to `set(["name", "description"])`.
    
    ///
    
    #### Using `list`s instead of `set`s
    
    If you forget to use a `set` and use a `list` or `tuple` instead, FastAPI will still convert it to a `set` and it will work correctly:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="29  35"
    {!> ../../docs_src/response_model/tutorial006_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/body-nested-models.md

    ### typingの`List`をインポート
    
    まず、Pythonの標準の`typing`モジュールから`List`をインポートします:
    
    ```Python hl_lines="1"
    {!../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### タイプパラメータを持つ`List`の宣言
    
    `list`や`dict`、`tuple`のようなタイプパラメータ(内部の型)を持つ型を宣言するには:
    
    * `typing`モジュールからそれらをインストールします。
    * 角括弧(`[`と`]`)を使って「タイプパラメータ」として内部の型を渡します:
    
    ```Python
    from typing import List
    
    my_list: List[str]
    ```
    
    型宣言の標準的なPythonの構文はこれだけです。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. docs/zh/docs/tutorial/body-nested-models.md

    ### 从 typing 导入 `List`
    
    首先,从 Python 的标准库 `typing` 模块中导入 `List`:
    
    ```Python hl_lines="1"
    {!> ../../docs_src/body_nested_models/tutorial002.py!}
    ```
    
    ### 声明具有子类型的 List
    
    要声明具有子类型的类型,例如 `list`、`dict`、`tuple`:
    
    * 从 `typing` 模块导入它们
    * 使用方括号 `[` 和 `]` 将子类型作为「类型参数」传入
    
    ```Python
    from typing import List
    
    my_list: List[str]
    ```
    
    这完全是用于类型声明的标准 Python 语法。
    
    对具有子类型的模型属性也使用相同的标准语法。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/response-model.md

    ```
    
    /// tip
    
    `{"name", "description"}` 语法创建一个具有这两个值的 `set`。
    
    等同于 `set(["name", "description"])`。
    
    ///
    
    #### 使用 `list` 而不是 `set`
    
    如果你忘记使用 `set` 而是使用 `list` 或 `tuple`,FastAPI 仍会将其转换为 `set` 并且正常工作:
    
    ```Python hl_lines="31  37"
    {!../../docs_src/response_model/tutorial006.py!}
    ```
    
    ## 总结
    
    使用*路径操作装饰器*的 `response_model` 参数来定义响应模型,特别是确保私有数据被过滤掉。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/response-model.md

    ```
    
    /// tip | "豆知識"
    
    `{"name", "description"}`の構文はこれら2つの値をもつ`set`を作成します。
    
    これは`set(["name", "description"])`と同等です。
    
    ///
    
    #### `set`の代わりに`list`を使用する
    
    もし`set`を使用することを忘れて、代わりに`list`や`tuple`を使用しても、FastAPIはそれを`set`に変換して正しく動作します:
    
    ```Python hl_lines="31 37"
    {!../../docs_src/response_model/tutorial006.py!}
    ```
    
    ## まとめ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import mockwebserver3.SocketPolicy.ShutdownServerAfterResponse
    import mockwebserver3.SocketPolicy.StallSocketAtStart
    import mockwebserver3.internal.ThrottledSink
    import mockwebserver3.internal.TriggerSink
    import mockwebserver3.internal.duplex.RealStream
    import mockwebserver3.internal.sleepNanos
    import okhttp3.ExperimentalOkHttpApi
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  7. internal/bucket/replication/replication_test.go

    		{ObjectOpts{Name: "xy/c3test", UserTags: "k1=v2"}, cfgs[2], false},                                                                      // 23. does not match rule1 because tag value does not pass filter
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  8. fastapi/routing.py

    from enum import Enum, IntEnum
    from typing import (
        Any,
        AsyncIterator,
        Callable,
        Coroutine,
        Dict,
        List,
        Mapping,
        Optional,
        Sequence,
        Set,
        Tuple,
        Type,
        Union,
    )
    
    from fastapi import params
    from fastapi._compat import (
        ModelField,
        Undefined,
        _get_model_config,
        _model_dump,
        _normalize_errors,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        assertThat(response.body.string()).isEqualTo("Hello response!")
        applicationLogs
          .assertLogEqual("--> POST $url")
          .assertLogEqual("--> END POST (duplex request body omitted)")
          .assertLogMatch(Regex("""<-- 200 $url \(\d+ms\)"""))
          .assertLogEqual("content-length: 15")
          .assertLogEqual("")
          .assertLogEqual("Hello response!")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

      /**
       * Default call timeout (in milliseconds). By default there is no timeout for complete calls, but
       * there is for the connect, write, and read actions within a call.
       *
       * For WebSockets and duplex calls the timeout only applies to the initial setup.
       */
      @get:JvmName("callTimeoutMillis")
      val callTimeoutMillis: Int = builder.callTimeout
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
Back to top