Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 685 for Dict (0.14 seconds)

  1. scripts/doc_parsing_utils.py

    
    def extract_code_includes(lines: list[str]) -> list[CodeIncludeInfo]:
        """
        Extract lines that contain code includes.
    
        Return list of CodeIncludeInfo, where each dict contains:
        - `line_no` - line number (1-based)
        - `line` - text of the line
        """
    
        includes: list[CodeIncludeInfo] = []
        for line_no, line in enumerate(lines, start=1):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:37:41 GMT 2026
    - 23.5K bytes
    - Click Count (0)
  2. docs/en/docs/advanced/response-change-status-code.md

    And then you can set the `status_code` in that *temporal* response object.
    
    {* ../../docs_src/response_change_status_code/tutorial001_py310.py hl[1,9,12] *}
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  3. tensorflow/BUILD

    )
    
    config_setting(
        name = "android_x86",
        constraint_values =
            [
                "@platforms//cpu:x86_32",
                "@platforms//os:android",
            ],
        values = dict(
            if_oss(
                {"crosstool_top": "//external:android/crosstool"},
            ),
        ),
        visibility = ["//visibility:public"],
    )
    
    config_setting(
        name = "android_x86_64",
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Tue Mar 24 21:00:18 GMT 2026
    - 53.1K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/it/admin/dict/DictCrudTestBase.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.it.admin.dict;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.junit.jupiter.api.Assertions.fail;
    
    import java.util.ArrayList;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/response-cookies.md

    And then you can set cookies in that *temporal* response object.
    
    {* ../../docs_src/response_cookies/tutorial002_py310.py hl[1, 8:9] *}
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  6. tests/test_stream_cancellation.py

            # Simulate a client that never disconnects, rely on cancellation
            await anyio.sleep(float("inf"))
            return {"type": "http.disconnect"}  # pragma: no cover
    
        async def send(message: dict) -> None:  # type: ignore[type-arg]
            if message["type"] == "http.response.body":
                chunks.append(message.get("body", b""))
    
        scope = {
            "type": "http",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/how-to/custom-request-and-route.md

    在這裡,我們用它將原始的請求包裝成 `GzipRequest`。
    
    {* ../../docs_src/custom_request_and_route/tutorial001_an_py310.py hl[19:27] *}
    
    /// note | 技術細節
    
    `Request` 具有 `request.scope` 屬性,它其實就是一個 Python 的 `dict`,包含與該請求相關的中繼資料。
    
    `Request` 也有 `request.receive`,那是一個用來「接收」請求本文的函式。
    
    `scope` 這個 `dict` 與 `receive` 函式都是 ASGI 規格的一部分。
    
    而 `scope` 與 `receive` 這兩者,就是建立一個新的 `Request` 實例所需的資料。
    
    想了解更多 `Request`,請參考 [Starlette 的 Request 文件](https://www.starlette.dev/requests/)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  8. tests/test_dependency_paramless.py

            raise HTTPException(detail="a or b not in scopes", status_code=401)
        return {"token": credentials, "scopes": security_scopes.scopes}
    
    
    @app.get("/get-credentials")
    def get_credentials(
        credentials: Annotated[dict, Security(process_auth, scopes=["a", "b"])],
    ):
        return credentials
    
    
    @app.get(
        "/parameterless-with-scopes",
        dependencies=[Security(process_auth, scopes=["a", "b"])],
    )
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  9. docs/zh/docs/tutorial/body.md

    把数据模型声明为继承 `BaseModel` 的类。
    
    使用 Python 标准类型声明所有属性:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    与声明查询参数一样,包含默认值的模型属性是可选的,否则就是必选的。把默认值设为 `None` 可使其变为可选。
    
    例如,上述模型声明如下 JSON "object"(即 Python `dict`):
    
    ```JSON
    {
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    ...由于 `description` 和 `tax` 是可选的(默认值为 `None`),下面的 JSON "object" 也有效:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.9K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/body.md

    The same as when declaring query parameters, when a model attribute has a default value, it is not required. Otherwise, it is required. Use `None` to make it just optional.
    
    For example, this model above declares a JSON "`object`" (or Python `dict`) like:
    
    ```JSON
    {
        "name": "Foo",
        "description": "An optional description",
        "price": 45.2,
        "tax": 3.5
    }
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.5K bytes
    - Click Count (0)
Back to Top