Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 632 for dict (0.17 sec)

  1. docs/en/docs/how-to/async-sql-encode-databases.md

    ### 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,
    }
    ```
    
    but it doesn't have the `id` field.
    
    So we create a new `dict`, that contains the key-value pairs from `note.dict()` with:
    
    ```Python
    {**note.dict()}
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. fastapi/_compat.py

        ) -> Any:
            return {}
    
        def get_model_definitions(
            *,
            flat_models: Set[Union[Type[BaseModel], Type[Enum]]],
            model_name_map: Dict[Union[Type[BaseModel], Type[Enum]], str],
        ) -> Dict[str, Any]:
            definitions: Dict[str, Dict[str, Any]] = {}
            for model in flat_models:
                m_schema, m_definitions, m_nested_models = model_process_schema(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/body-nested-models.md

    Você não conseguiria este tipo de suporte de editor se estivesse trabalhando diretamente com `dict` em vez de modelos Pydantic.
    
    Mas você também não precisa se preocupar com eles, os dicts de entrada são convertidos automaticamente e sua saída é convertida automaticamente para JSON também.
    
    ## Corpos de `dict`s arbitrários
    
    Você também pode declarar um corpo como um `dict` com chaves de algum tipo e valores de outro tipo.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/org/codelibs/fess/app/service/KuromojiService.java

    import org.codelibs.fess.Constants;
    import org.codelibs.fess.app.pager.KuromojiPager;
    import org.codelibs.fess.dict.DictionaryFile.PagingList;
    import org.codelibs.fess.dict.DictionaryManager;
    import org.codelibs.fess.dict.kuromoji.KuromojiFile;
    import org.codelibs.fess.dict.kuromoji.KuromojiItem;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.dbflute.optional.OptionalEntity;
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/admin/dict/ProtwordsTests.java

        private static final String NAME_PREFIX = "protwordsTest_";
        private static final String API_PATH = "/api/admin/dict/protwords";
        private static final String LIST_ENDPOINT_SUFFIX = "settings";
        private static final String ITEM_ENDPOINT_SUFFIX = "setting";
        private static final String DICT_TYPE = "protwords";
    
        private static final String KEY_PROPERTY = "input";
    
        @Override
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java

    import org.codelibs.fess.app.web.CrudMode;
    import org.codelibs.fess.app.web.admin.dict.stopwords.UploadForm;
    import org.codelibs.fess.app.web.api.ApiResult;
    import org.codelibs.fess.app.web.api.admin.FessApiAdminAction;
    import org.codelibs.fess.dict.stopwords.StopwordsFile;
    import org.codelibs.fess.dict.stopwords.StopwordsItem;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.JsonResponse;
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  8. tests/test_response_by_alias.py

        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/dict": {
                    "get": {
                        "summary": "Read Dict",
                        "operationId": "read_dict_dict_get",
                        "responses": {
                            "200": {
                                "description": "Successful Response",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/mylasta/action/FessLabels.java

        /** The key of the message: Segmentation */
        public static final String LABELS_dict_kuromoji_segmentation = "{labels.dict_kuromoji_segmentation}";
    
        /** The key of the message: Reading */
        public static final String LABELS_dict_kuromoji_reading = "{labels.dict_kuromoji_reading}";
    
        /** The key of the message: POS */
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Fri Mar 22 11:58:34 GMT 2024
    - 146.4K bytes
    - Viewed (0)
  10. fastapi/utils.py

        return operation_id
    
    
    def deep_dict_update(main_dict: Dict[Any, Any], update_dict: Dict[Any, Any]) -> None:
        for key, value in update_dict.items():
            if (
                key in main_dict
                and isinstance(main_dict[key], dict)
                and isinstance(value, dict)
            ):
                deep_dict_update(main_dict[key], value)
            elif (
                key in main_dict
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top