- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 559 for dice (0.02 seconds)
-
docs/de/docs/advanced/testing-events.md
Sie können mehr Details unter [„Lifespan in Tests ausführen in der offiziellen Starlette-Dokumentation.“](https://www.starlette.dev/lifespan/#running-lifespan-in-tests) nachlesen. Für die deprecateten Events <abbr title="Hochfahren">`startup`</abbr> und <abbr title="Herunterfahren">`shutdown`</abbr> können Sie den `TestClient` wie folgt verwenden:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 738 bytes - Click Count (0) -
tests/test_filter_pydantic_sub_model_pv2.py
username: str class ModelC(ModelB): password: str class ModelA(BaseModel): name: str description: Optional[str] = None foo: ModelB tags: dict[str, str] = {} @field_validator("name") def lower_username(cls, name: str, info: ValidationInfo): if not name.endswith("A"): raise ValueError("name must end in A")Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 6.6K bytes - Click Count (0) -
tests/test_pydantic_v1_error.py
class ModelV1A(BaseModel): name: str app = FastAPI() with pytest.raises(PydanticV1NotSupportedError): @app.post("/union") def endpoint(data: Union[dict, ModelV1A]): # pragma: no cover return data def test_raises_pydantic_v1_model_in_sequence() -> None: class ModelV1A(BaseModel): name: str app = FastAPI()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 2.3K bytes - Click Count (0) -
docs/en/docs/advanced/response-cookies.md
And then you can set cookies in that *temporal* response object. {* ../../docs_src/response_cookies/tutorial002_py39.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 Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.3K bytes - Click Count (0) -
docs/uk/docs/tutorial/body.md
Наприклад, ця модель вище оголошує JSON "`об'єкт`" (або Python `dict`), як: ```JSON { "name": "Foo", "description": "An optional description", "price": 45.2, "tax": 3.5 } ```
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 10K bytes - Click Count (0) -
docs/ru/docs/advanced/templates.md
В HTML, который содержит: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ...будет показан `id`, взятый из переданного вами «context» `dict`: ```Python {"id": id} ``` Например, для ID `42` это отрендерится как: ```html Item ID: 42 ``` ### Аргументы `url_for` в шаблоне { #template-url-for-arguments }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 5.1K bytes - Click Count (0) -
docs/pt/llm-prompt.md
* «/// note | Technical Details»: «/// note | Detalhes Técnicos» * «/// info | Very Technical Details»: «/// note | Detalhes Técnicos Avançados» * «/// note»: «/// note | Nota» * «/// tip»: «/// tip | Dica» * «/// warning»: «/// warning | Atenção» * «(you should)»: «(você deveria)» * async context manager: gerenciador de contexto assíncrono * autocomplete: autocompletar * autocompletion: preenchimento automático * bug: bug
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.1K bytes - Click Count (0) -
docs/de/docs/learn/index.md
# Lernen { #learn } Hier sind die einführenden Abschnitte und Tutorials, um **FastAPI** zu lernen.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 232 bytes - Click Count (0) -
docs/zh/docs/tutorial/response-model.md
* 将输出数据转换为其声明的类型。 * 校验数据。 * 在 OpenAPI 的*路径操作*中为响应添加一个 JSON Schema。 * 并在自动生成文档系统中使用。 但最重要的是: * 会将输出数据限制在该模型定义内。下面我们会看到这一点有多重要。 /// note | 技术细节 响应模型在参数中被声明,而不是作为函数返回类型的注解,这是因为路径函数可能不会真正返回该响应模型,而是返回一个 `dict`、数据库对象或其他模型,然后再使用 `response_model` 来执行字段约束和序列化。 /// ## 返回与输入相同的数据 现在我们声明一个 `UserIn` 模型,它将包含一个明文密码属性。 {* ../../docs_src/response_model/tutorial002.py hl[9,11] *} 我们正在使用此模型声明输入数据,并使用同一模型声明输出数据:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 6.9K bytes - Click Count (0) -
docs/es/docs/features.md
"name": "Mary", "joined": "2018-11-30", } my_second_user: User = User(**second_user_data) ``` /// info | Información `**second_user_data` significa: Pasa las claves y valores del dict `second_user_data` directamente como argumentos de clave-valor, equivalente a: `User(id=4, name="Mary", joined="2018-11-30")` /// ### Soporte del editor { #editor-support }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 10:15:01 GMT 2025 - 10.8K bytes - Click Count (0)