- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 1,366 for nonce (0.02 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/uk/docs/tutorial/query-params-str-validations.md
Раніше ми мали таку анотацію типу: ```Python q: str | None = None ``` Тепер ми загорнемо її у `Annotated`, і отримаємо: ```Python q: Annotated[str | None] = None ``` Обидві ці версії означають одне й те саме: `q` — це параметр, який може бути `str` або `None`, і за замовчуванням має значення `None`. А тепер переходимо до цікавого! 🎉
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 25.9K bytes - Click Count (0) -
tests/test_request_params/test_query/test_required_str.py
assert response.json() == { "detail": [ { "type": "missing", "loc": ["query", "p"], "msg": "Field required", "input": IsOneOf(None, {}), } ] } @pytest.mark.parametrize( "path", ["/required-str", "/model-required-str"], ) def test_required_str(path: str): client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 10.2K bytes - Click Count (0) -
docs_src/body_updates/tutorial002_py310.py
app = FastAPI() class Item(BaseModel): name: str | None = None description: str | None = None price: 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": []}, }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 12:07:26 GMT 2026 - 1009 bytes - Click Count (0) -
src/main/webapp/css/admin/plugins/daterangepicker/daterangepicker.css
float: none; } .daterangepicker.single .drp-selected { display: none; } .daterangepicker.show-calendar .drp-calendar { display: block; } .daterangepicker.show-calendar .drp-buttons { display: block; } .daterangepicker.auto-apply .drp-buttons { display: none; } .daterangepicker .drp-calendar { display: none;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Oct 26 01:49:09 GMT 2024 - 7.5K bytes - Click Count (0) -
fastapi/utils.py
"field (e.g. Union[Response, dict, None]) you can disable generating the " "response model from the type annotation with the path operation decorator " "parameter response_model=None. Read more: " "https://fastapi.tiangolo.com/tutorial/response-model/" ) def create_model_field( name: str, type_: Any, default: Any | None = Undefined, field_info: FieldInfo | None = None,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:41:21 GMT 2026 - 4.2K bytes - Click Count (0) -
docs_src/openapi_callbacks/tutorial001_py310.py
from fastapi import APIRouter, FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Invoice(BaseModel): id: str title: str | None = None customer: str total: float class InvoiceEvent(BaseModel): description: str paid: bool class InvoiceEventReceived(BaseModel): ok: bool invoices_callback_router = APIRouter() @invoices_callback_router.post(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 1.3K bytes - Click Count (0) -
fastapi/concurrency.py
) ) if not ok: raise e else: await anyio.to_thread.run_sync( cm.__exit__, None, None, None, limiter=exit_limiterCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.5K bytes - Click Count (0) -
docs/fr/docs/tutorial/query-params-str-validations.md
Nous avions cette annotation de type : ```Python q: str | None = None ``` Ce que nous allons faire, c’est l’englober avec `Annotated`, de sorte que cela devienne : ```Python q: Annotated[str | None] = None ``` Les deux versions signifient la même chose, `q` est un paramètre qui peut être une `str` ou `None`, et par défaut, c’est `None`. Passons maintenant aux choses amusantes. 🎉
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 19K bytes - Click Count (0) -
tests/test_request_params/test_form/test_required_str.py
assert response.json() == { "detail": [ { "type": "missing", "loc": ["body", "p"], "msg": "Field required", "input": IsOneOf(None, {}), } ] } @pytest.mark.parametrize( "path", ["/required-str", "/model-required-str"], ) def test_required_str(path: str): client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 10.6K bytes - Click Count (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial001.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 6.9K bytes - Click Count (0)