- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 506 for Dict (0.02 sec)
-
tests/test_dependency_normal_exceptions.py
@app.put("/invalid-user/{user_id}") def put_invalid_user( user_id: str, name: str = Body(), db: dict = Depends(get_database) ): db[user_id] = name raise HTTPException(status_code=400, detail="Invalid user") @app.put("/user/{user_id}") def put_user(user_id: str, name: str = Body(), db: dict = Depends(get_database)): db[user_id] = name return {"message": "OK"} @pytest.fixture(autouse=True)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/fr/docs/python-types.md
#### `Dict` Pour définir un `dict`, il faut lui passer 2 paramètres, séparés par une virgule (`,`). Le premier paramètre de type est pour les clés et le second pour les valeurs du dictionnaire (`dict`). {*../../docs_src/python_types/tutorial008.py hl[1,4] *} Dans cet exemple : * La variable `prices` est de type `dict` : * Les clés de ce dictionnaire sont de type `str`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 15:21:34 UTC 2024 - 10K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-nested-models.md
如果你直接使用 `dict` 而不是 Pydantic 模型,那你将无法获得这种编辑器支持。 但是你根本不必担心这两者,传入的字典会自动被转换,你的输出也会自动被转换为 JSON。 ## 任意 `dict` 构成的请求体 你也可以将请求体声明为使用某类型的键和其他类型值的 `dict`。 无需事先知道有效的字段/属性(在使用 Pydantic 模型的场景)名称是什么。 如果你想接收一些尚且未知的键,这将很有用。 --- 其他有用的场景是当你想要接收其他类型的键时,例如 `int`。 这也是我们在接下来将看到的。 在下面的例子中,你将接受任意键为 `int` 类型并且值为 `float` 类型的 `dict`: //// tab | Python 3.9+
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.2K bytes - Viewed (0) -
scripts/label_approved.py
default_config = {"approved-2": LabelSettings(await_label="awaiting-review", number=2)} class Settings(BaseSettings): github_repository: str token: SecretStr debug: bool | None = False config: dict[str, LabelSettings] | Literal[""] = default_config settings = Settings() if settings.debug: logging.basicConfig(level=logging.DEBUG) else: logging.basicConfig(level=logging.INFO)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 13:58:30 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
/// info In Pydantic v1 hieß diese Methode `.dict()`, in Pydantic v2 wurde sie deprecated (aber immer noch unterstützt) und in `.model_dump()` umbenannt. Die Beispiele hier verwenden `.dict()` für die Kompatibilität mit Pydantic v1, Sie sollten jedoch stattdessen `.model_dump()` verwenden, wenn Sie Pydantic v2 verwenden können. /// /// info
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java
import org.codelibs.fess.app.service.ProtwordsService; import org.codelibs.fess.app.web.CrudMode; import org.codelibs.fess.app.web.admin.dict.AdminDictAction; import org.codelibs.fess.app.web.base.FessAdminAction; import org.codelibs.fess.app.web.base.FessBaseAction; import org.codelibs.fess.dict.protwords.ProtwordsItem; import org.codelibs.fess.util.ComponentUtil; import org.codelibs.fess.util.RenderDataUtil;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 17.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java
import org.codelibs.core.io.CloseableUtil; import org.codelibs.core.lang.StringUtil; import org.codelibs.curl.CurlResponse; import org.codelibs.fess.Constants; import org.codelibs.fess.dict.DictionaryException; import org.codelibs.fess.dict.DictionaryFile; import org.codelibs.fess.util.ComponentUtil; import org.dbflute.optional.OptionalEntity; public class ProtwordsFile extends DictionaryFile<ProtwordsItem> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java
import org.codelibs.core.io.CloseableUtil; import org.codelibs.core.lang.StringUtil; import org.codelibs.curl.CurlResponse; import org.codelibs.fess.Constants; import org.codelibs.fess.dict.DictionaryException; import org.codelibs.fess.dict.DictionaryFile; import org.codelibs.fess.util.ComponentUtil; import org.dbflute.optional.OptionalEntity; public class StopwordsFile extends DictionaryFile<StopwordsItem> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.6K bytes - Viewed (0) -
.github/actions/notify-translations/app/main.py
import logging import random import sys import time from pathlib import Path from typing import Any, Dict, List, Union, cast import httpx from github import Github from pydantic import BaseModel, BaseSettings, SecretStr awaiting_label = "awaiting-review" lang_all_label = "lang-all" approved_label = "approved-1" translations_path = Path(__file__).parent / "translations.yml" github_graphql_url = "https://api.github.com/graphql"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Jul 29 23:35:07 UTC 2024 - 12.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.dict; import java.io.File; import org.apache.commons.io.FileUtils; import org.codelibs.core.io.FileUtil; import org.codelibs.fess.Constants; import org.codelibs.fess.dict.mapping.CharMappingCreator; import org.codelibs.fess.unit.UnitFessTestCase;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.4K bytes - Viewed (0)