Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 1,122 for dist (0.02 seconds)

  1. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

         * Concatenates values to a destination list, avoiding duplicates.
         * @param dest The destination list.
         * @param newValues The new values to add.
         * @param <T> The type of the values.
         */
        protected static <T> void concatValues(final List<T> dest, final T... newValues) {
            for (final T value : newValues) {
                if (!dest.contains(value)) {
                    dest.add(value);
                }
            }
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  2. docs/zh/docs/python-types.md

    有些类型可以在方括号中接收“类型参数”(type parameters),用于声明其内部值的类型。比如“字符串列表”可以写为 `list[str]`。
    
    这些能接收类型参数的类型称为“泛型类型”(Generic types)或“泛型”(Generics)。
    
    你可以把相同的内建类型作为泛型使用(带方括号和内部类型):
    
    * `list`
    * `tuple`
    * `set`
    * `dict`
    
    #### 列表 { #list }
    
    例如,我们来定义一个由 `str` 组成的 `list` 变量。
    
    用同样的冒号(`:`)语法声明变量。
    
    类型写 `list`。
    
    因为 list 是一种包含内部类型的类型,把内部类型写在方括号里:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  3. docs/ru/docs/how-to/custom-request-and-route.md

    /// note | Технические детали
    
    У `Request` есть атрибут `request.scope` — это просто Python-`dict`, содержащий метаданные, связанные с HTTP-запросом.
    
    У `Request` также есть `request.receive` — функция для «получения» тела запроса.
    
    И `dict` `scope`, и функция `receive` являются частью спецификации ASGI.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  4. docs/tr/docs/advanced/templates.md

    * Oluşturduğunuz `templates` nesnesini kullanarak bir `TemplateResponse` render edip döndürün; template'in adını, request nesnesini ve Jinja2 template'i içinde kullanılacak anahtar-değer çiftlerini içeren bir "context" sözlüğünü (dict) iletin.
    
    {* ../../docs_src/templates/tutorial001_py310.py hl[4,11,15:18] *}
    
    /// note | Not
    
    FastAPI 0.108.0 ve Starlette 0.29.0 öncesinde, ilk parametre `name` idi.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/references/dependencies.md

    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    @dataclass
    class DatabasePaginator:
        offset: int = 0
        limit: int = 100
        q: str | None = None
    
        def get_page(self) -> dict:
            # Simulate a page of data
            return {
                "offset": self.offset,
                "limit": self.limit,
                "q": self.q,
                "items": [],
            }
    
    
    def get_db_paginator(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/advanced/response-directly.md

    # 直接回傳 Response { #return-a-response-directly }
    
    當你建立一個 **FastAPI** 的路徑操作 (path operation) 時,通常可以從中回傳任何資料:`dict`、`list`、Pydantic 模型、資料庫模型等。
    
    如果你宣告了 [回應模型](../tutorial/response-model.md),FastAPI 會用 Pydantic 將資料序列化為 JSON。
    
    如果你沒有宣告回應模型,FastAPI 會使用在[JSON 相容編碼器](../tutorial/encoder.md)中說明的 `jsonable_encoder`,並把它放進 `JSONResponse`。
    
    但你也可以直接從路徑操作回傳 `JSONResponse`。
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/metadata.md

    | `description` | `str` | API 的简短描述。可以使用 Markdown。 |
    | `version` | `string` | API 的版本。这是您自己的应用程序的版本,而不是 OpenAPI 的版本。例如 `2.5.0`。 |
    | `terms_of_service` | `str` | API 服务条款的 URL。如果提供,则必须是 URL。 |
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  8. docs/ja/docs/tutorial/body-nested-models.md

    ## リストのフィールド { #list-fields }
    
    属性をサブタイプとして定義することができます。例えば、Pythonの`list`:
    
    {* ../../docs_src/body_nested_models/tutorial001_py310.py hl[12] *}
    
    これにより、各項目の型は宣言されていませんが、`tags`はリストになります。
    
    ## タイプパラメータを持つリストのフィールド { #list-fields-with-type-parameter }
    
    しかし、Pythonには内部の型、または「タイプパラメータ」を使ってリストを宣言するための特定の方法があります:
    
    ### タイプパラメータを持つ`list`の宣言 { #declare-a-list-with-a-type-parameter }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsItem.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.dict.stopwords;
    
    import org.apache.commons.lang3.StringUtils;
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fess.dict.DictionaryItem;
    
    /**
     * Represents an item in a stopwords dictionary.
     * This class stores a stopword and tracks its updated value.
     */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 07:09:00 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  10. tests/test_serialize_response_model.py

        price: float | None = None
        owner_ids: list[int] | None = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return Item(aliased_name="valid", price=1.0)
    
    
    @app.get("/items/coerce", response_model=Item)
    def get_coerce():
        return Item(aliased_name="coerce", price="1.0")
    
    
    @app.get("/items/validlist", response_model=list[Item])
    def get_validlist():
        return [
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.1K bytes
    - Click Count (0)
Back to Top