- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 539 for unicos (0.08 sec)
-
docs/em/docs/python-types.md
``` //// #### âī¸ `Union` âī¸ `Optional` đĨ đ âī¸ đ âŦ đ 3ī¸âŖ.1ī¸âŖ0ī¸âŖ, đĨ đââ âĒī¸âĄī¸ đ đļ **đ¤** â đ: * đļ â âī¸ `Optional[SomeType]` * âŠī¸ đļ **âī¸ `Union[SomeType, None]`** đļ. đ¯ââī¸ đ & đ đĢ đ, âī¸ đ¤ đ đ `Union` âŠī¸ `Optional` âŠī¸ đ¤ "**đĻ**" đ đ đ đ đ˛ đĻ, & âĢī¸ đ¤ â "âĢī¸ đĒ `None`", đĨ âĢī¸ đĢ đĻ & â. đ¤ đ `Union[SomeType, None]` đ đ đ âĢī¸â âĢī¸ â.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.4K bytes - Viewed (0) -
docs/em/docs/tutorial/query-params-str-validations.md
```Python hl_lines="7" {!> ../../docs_src/query_params_str_validations/tutorial001_py310.py!} ``` //// đĸ đĸ `q` đ `Union[str, None]` (âī¸ `str | None` đ 3ī¸âŖ.1ī¸âŖ0ī¸âŖ), đ â đ âĢī¸ đ `str` âī¸ đĒ `None`, & đ, đĸ đ˛ `None`, FastAPI đ đ âĢī¸ đĢ â. /// note FastAPI đ đ đ đ˛ `q` đĢ â âŠī¸ đĸ đ˛ `= None`. `Union` `Union[str, None]` đ â đ đ¨âđ¨ đ¤ đ đ đâđĻē & đ â. /// ## đ đŦ
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.7K bytes - Viewed (0) -
docs_src/body_fields/tutorial001.py
from typing import 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: Fri May 13 23:38:22 UTC 2022 - 561 bytes - Viewed (0) -
docs/em/docs/tutorial/extra-models.md
``` //// ## `Union` âī¸ `anyOf` đ đĒ đŖ đ¨ `Union` 2ī¸âŖ đ, đ â, đ đ¨ đ đ 2ī¸âŖ. âĢī¸ đ đŦ đ âŽī¸ `anyOf`. đ, âī¸ đŠ đ đ đ <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>: /// note
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.8K bytes - Viewed (0) -
docs_src/schema_extra_example/tutorial004_an_py39.py
from typing import Annotated, Union from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None @app.put("/items/{item_id}") async def update_item( *, item_id: int, item: Annotated[ Item, Body( examples=[
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jul 01 16:43:29 UTC 2023 - 936 bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001_an_py39.py
from typing import Annotated, Union from fastapi import Body, FastAPI, status from fastapi.responses import JSONResponse app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ): if item_id in items:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 705 bytes - Viewed (0) -
docs_src/body_fields/tutorial001_an.py
from typing import Union from fastapi import Body, FastAPI from pydantic import BaseModel, Field from typing_extensions import Annotated 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
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 611 bytes - Viewed (0) -
docs_src/additional_status_codes/tutorial001_an.py
from typing import Union from fastapi import Body, FastAPI, status from fastapi.responses import JSONResponse from typing_extensions import Annotated app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 734 bytes - Viewed (0) -
docs_src/python_types/tutorial009b.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 164 bytes - Viewed (0) -
docs_src/header_params/tutorial002.py
from typing import Union from fastapi import FastAPI, Header app = FastAPI() @app.get("/items/") async def read_items( strange_header: Union[str, None] = Header(default=None, convert_underscores=False), ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 260 bytes - Viewed (0)