- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 472 for tabs (0.02 seconds)
-
docs/de/docs/tutorial/dependencies/classes-as-dependencies.md
## Typannotation vs. `Depends` { #type-annotation-vs-depends } Beachten Sie, wie wir `CommonQueryParams` im obigen Code zweimal schreiben: //// tab | Python 3.9+ ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` //// //// tab | Python 3.9+ nicht annotiert /// tip | Tipp Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```PythonCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.6K bytes - Click Count (0) -
tests/test_tutorial/test_generate_clients/test_tutorial002.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 7.1K bytes - Click Count (0) -
docs/pt/docs/tutorial/metadata.md
Você não precisa adicionar metadados para todas as tags que você usa. /// ### Use suas tags { #use-your-tags } Use o parâmetro `tags` com suas *operações de rota* (e `APIRouter`s) para atribuí-los a diferentes tags: {* ../../docs_src/metadata/tutorial004_py39.py hl[21,26] *} /// info | Informação Leia mais sobre tags em [Configuração de operação de rota](path-operation-configuration.md#tags){.internal-link target=_blank}. ///Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.3K bytes - Click Count (0) -
docs_src/dataclasses_/tutorial002_py310.py
from dataclasses import dataclass, field from fastapi import FastAPI @dataclass class Item: name: str price: float tags: list[str] = field(default_factory=list) description: str | None = None tax: float | None = None app = FastAPI() @app.get("/items/next", response_model=Item) async def read_next_item(): return { "name": "Island In The Moon", "price": 12.99,Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 506 bytes - Click Count (0) -
docs_src/response_model/tutorial004_py39.py
name: str description: Union[str, None] = None price: float tax: float = 10.5 tags: list[str] = [] items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2}, "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []}, } @app.get("/items/{item_id}", response_model=Item, response_model_exclude_unset=True)Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 627 bytes - Click Count (0) -
docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md
## Аннотация типа и `Depends` { #type-annotation-vs-depends } Обратите внимание, что в приведенном выше коде мы два раза пишем `CommonQueryParams`: //// tab | Python 3.9+ ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` //// //// tab | Python 3.9+ non-Annotated /// tip | Подсказка Рекомендуется использовать версию с `Annotated`, если возможно. /// ```PythonCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10.7K bytes - Click Count (0) -
docs/es/docs/tutorial/dependencies/classes-as-dependencies.md
## Anotación de tipos vs `Depends` { #type-annotation-vs-depends } Nota cómo escribimos `CommonQueryParams` dos veces en el código anterior: //// tab | Python 3.9+ ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` //// //// tab | Python 3.9+ sin `Annotated` /// tip | Consejo Prefiere usar la versión `Annotated` si es posible. /// ```PythonCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.1K bytes - Click Count (0) -
docs/pt/docs/tutorial/body-nested-models.md
Use a mesma sintaxe padrão para atributos de modelo com tipos internos. Portanto, em nosso exemplo, podemos fazer com que `tags` sejam especificamente uma "lista de strings": {* ../../docs_src/body_nested_models/tutorial002_py310.py hl[12] *} ## Tipos "set" { #set-types } Mas então, quando nós pensamos mais, percebemos que as tags não devem se repetir, elas provavelmente devem ser strings únicas.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.4K bytes - Click Count (0) -
docs_src/body_updates/tutorial002_py39.py
description: Union[str, None] = None price: Union[float, None] = None tax: float = 10.5 tags: list[str] = [] items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2}, "baz": {"name": "Baz", "description": None, "price": 50.2, "tax": 10.5, "tags": []}, } @app.get("/items/{item_id}", response_model=Item)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1K bytes - Click Count (0) -
tests/test_tutorial/test_generate_clients/test_tutorial003.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.1K bytes - Click Count (0)