- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 1,141 for NONE (0.02 seconds)
-
fastapi/openapi/models.py
type: SchemaType | list[SchemaType] | None = None enum: list[Any] | None = None const: Any | None = None multipleOf: float | None = Field(default=None, gt=0) maximum: float | None = None exclusiveMaximum: float | None = None minimum: float | None = None exclusiveMinimum: float | None = None maxLength: int | None = Field(default=None, ge=0) minLength: int | None = Field(default=None, ge=0)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 14.2K bytes - Click Count (0) -
docs/en/docs/tutorial/query-params-str-validations.md
We had this type annotation: ```Python q: str | None = None ``` What we will do is wrap that with `Annotated`, so it becomes: ```Python q: Annotated[str | None] = None ``` Both of those versions mean the same thing, `q` is a parameter that can be a `str` or `None`, and by default, it is `None`. Now let's jump to the fun stuff. π
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 16.3K bytes - Click Count (0) -
docs/ko/docs/advanced/advanced-python-types.md
μλ₯Ό λ€μ΄, μ΄λ€ κ°μ΄ `str` λλ `None`μ΄ λ μ μλ€κ³ μ μΈν μ μμ΅λλ€: ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` `typing`μλ `None`μ΄ λ μ μμμ μ μΈνλ μΆμ½νμΌλ‘ `Optional`λ μμ΅λλ€. μμ£Ό κ°μΈμ μΈ κ΄μ μμμ νμ λλ€: - π¨ `Optional[SomeType]` μ¬μ©μ νΌνμΈμ - λμ β¨ **`Union[SomeType, None]`λ₯Ό μ¬μ©νμΈμ** β¨.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 2.4K bytes - Click Count (0) -
fastapi/sse.py
""" ), ] = None event: Annotated[ str | None, Doc( """ Optional event type name. Maps to `addEventListener(event, ...)` on the browser. When omitted, the browser dispatches on the generic `message` event. """ ), ] = None id: Annotated[ str | None, AfterValidator(_check_id_no_null),Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 6.2K bytes - Click Count (0) -
docs/metrics/prometheus/grafana/minio-dashboard.json
"gridPos": { "h": 6, "w": 3, "x": 0, "y": 0 }, "id": 1, "maxDataPoints": 100, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "mean" ], "fields": "", "values": false },
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Aug 04 01:46:49 GMT 2025 - 93.1K bytes - Click Count (0) -
docs/metrics/prometheus/grafana/node/minio-node.json
"axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 10, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear",
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Aug 04 01:46:49 GMT 2025 - 22.5K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial002_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item, user: User):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 446 bytes - Click Count (0) -
docs_src/body_nested_models/tutorial006_py310.py
app = FastAPI() class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() images: list[Image] | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item): results = {"item_id": item_id, "item": item}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 475 bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial003_an_py310.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item( item_id: int, item: Item, user: User, importance: Annotated[int, Body()] ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 550 bytes - Click Count (0) -
tests/test_serialize_response_model.py
from pydantic import BaseModel, Field from starlette.testclient import TestClient app = FastAPI() class Item(BaseModel): name: str = Field(alias="aliased_name") price: float | None = None owner_ids: list[int] | None = None @app.get("/items/valid", response_model=Item) def get_valid(): return Item(aliased_name="valid", price=1.0) @app.get("/items/coerce", response_model=Item) def get_coerce():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 4.1K bytes - Click Count (0)