- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 621 for annotated (0.06 sec)
-
docs_src/body_fields/tutorial001_an_py39.py
from typing import Annotated, Union from fastapi import Body, FastAPI from pydantic import BaseModel, Field app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = Field( default=None, title="The description of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: Union[float, None] = None @app.put("/items/{item_id}")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 582 bytes - Viewed (0) -
docs/pt/docs/advanced/testing-dependencies.md
``` //// //// tab | Python 3.10+ non-Annotated /// tip | "Dica" Prefira utilizar a versão `Annotated` se possível. /// ```Python hl_lines="24-25 28" {!> ../../docs_src/dependency_testing/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip | "Dica" Prefira utilizar a versão `Annotated` se possível. /// ```Python hl_lines="28-29 32"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.2K bytes - Viewed (0) -
docs/tr/docs/tutorial/request-forms.md
``` //// //// tab | Python 3.8+ ```Python hl_lines="1" {!> ../../docs_src/request_forms/tutorial001_an.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python hl_lines="1" {!> ../../docs_src/request_forms/tutorial001.py!} ``` //// ## `Form` Parametrelerini Tanımlayın
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.8K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006d_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Oct 12 09:36:32 UTC 2024 - 300 bytes - Viewed (0) -
docs_src/request_form_models/tutorial002_pv1_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 312 bytes - Viewed (0) -
docs_src/cookie_param_models/tutorial001_an_py310.py
from typing import Annotated from fastapi import Cookie, FastAPI from pydantic import BaseModel app = FastAPI() class Cookies(BaseModel): session_id: str fatebook_tracker: str | None = None googall_tracker: str | None = None @app.get("/items/") async def read_items(cookies: Annotated[Cookies, Cookie()]):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 343 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006c_an_py39.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 320 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial014_an.py
from typing import Union from fastapi import FastAPI, Query from typing_extensions import Annotated app = FastAPI() @app.get("/items/") async def read_items( hidden_query: Annotated[Union[str, None], Query(include_in_schema=False)] = None, ): if hidden_query: return {"hidden_query": hidden_query} else:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 373 bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
``` //// //// tab | Python 3.8+ ```Python hl_lines="5 13 21" {!> ../../docs_src/dependencies/tutorial008_an.py!} ``` //// //// tab | Python 3.8+ non-Annotated /// tip | 提示 如果可以,请尽量使用 `Annotated` 版本。 /// ```Python hl_lines="4 12 20" {!> ../../docs_src/dependencies/tutorial008.py!} ``` //// 所有这些依赖都可以使用 `yield`。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.3K bytes - Viewed (0) -
docs_src/body_multiple_params/tutorial004_an.py
from typing import Union from fastapi import Body, FastAPI from pydantic import BaseModel from typing_extensions import Annotated app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None class User(BaseModel): username: str full_name: Union[str, None] = None @app.put("/items/{item_id}") async def update_item(
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 703 bytes - Viewed (0)