- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 880 for unkown (0.08 sec)
-
docs_src/security/tutorial004_an_py39.py
} class Token(BaseModel): access_token: str token_type: str class TokenData(BaseModel): username: Union[str, None] = None class User(BaseModel): username: str email: Union[str, None] = None full_name: Union[str, None] = None disabled: Union[bool, None] = None class UserInDB(User): hashed_password: str
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Mon May 20 17:37:28 UTC 2024 - 4.2K bytes - Viewed (0) -
tests/test_required_noneable.py
from typing import Union from fastapi import Body, FastAPI, Query from fastapi.testclient import TestClient app = FastAPI() @app.get("/query") def read_query(q: Union[str, None]): return q @app.get("/explicit-query") def read_explicit_query(q: Union[str, None] = Query()): return q @app.post("/body-embed") def send_body_embed(b: Union[str, None] = Body(embed=True)): return b
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat May 14 19:08:31 UTC 2022 - 1.5K bytes - Viewed (0) -
istioctl/cmd/sysexits.go
ExitAnalyzerFoundIssues = 79 // istioctl analyze found issues, for CI/CD ) func GetExitCode(e error) int { if strings.Contains(e.Error(), "unknown command") { e = util.CommandParseError{Err: e} } switch e.(type) { case util.CommandParseError: return ExitIncorrectUsage case analyze.FileParseError: return ExitDataError
Registered: Wed Oct 30 22:53:10 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 1.9K bytes - Viewed (0) -
docs_src/sql_databases/tutorial001.py
from typing import List, Union from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class Hero(SQLModel, table=True): id: Union[int, None] = Field(default=None, primary_key=True) name: str = Field(index=True) age: Union[int, None] = Field(default=None, index=True) secret_name: str sqlite_file_name = "database.db"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 1.8K bytes - Viewed (0) -
docs_src/body/tutorial001.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None app = FastAPI() @app.post("/items/") async def create_item(item: Item):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 309 bytes - Viewed (0) -
docs_src/cookie_param_models/tutorial001_an_py39.py
from typing import Annotated, Union from fastapi import Cookie, FastAPI from pydantic import BaseModel app = FastAPI() class Cookies(BaseModel): session_id: str fatebook_tracker: Union[str, None] = None googall_tracker: Union[str, None] = None @app.get("/items/") async def read_items(cookies: Annotated[Cookies, Cookie()]):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 362 bytes - Viewed (0) -
docs_src/header_params/tutorial001_an.py
from typing import Union from fastapi import FastAPI, Header from typing_extensions import Annotated app = FastAPI() @app.get("/items/") async def read_items(user_agent: Annotated[Union[str, None], Header()] = None):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 259 bytes - Viewed (0) -
docs/em/docs/python-types.md
``` //// #### âī¸ `Union` âī¸ `Optional` đĨ đ âī¸ đ âŦ đ 3ī¸âŖ.1ī¸âŖ0ī¸âŖ, đĨ đââ âĒī¸âĄī¸ đ đļ **đ¤** â đ: * đļ â âī¸ `Optional[SomeType]` * âŠī¸ đļ **âī¸ `Union[SomeType, None]`** đļ. đ¯ââī¸ đ & đ đĢ đ, âī¸ đ¤ đ đ `Union` âŠī¸ `Optional` âŠī¸ đ¤ "**đĻ**" đ đ đ đ đ˛ đĻ, & âĢī¸ đ¤ â "âĢī¸ đĒ `None`", đĨ âĢī¸ đĢ đĻ & â. đ¤ đ `Union[SomeType, None]` đ đ đ âĢī¸â âĢī¸ â.
Registered: Sun Oct 27 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 Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.7K bytes - Viewed (0) -
docs_src/header_params/tutorial003_an.py
from typing import List, Union from fastapi import FastAPI, Header from typing_extensions import Annotated app = FastAPI() @app.get("/items/") async def read_items(x_token: Annotated[Union[List[str], None], Header()] = None):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 269 bytes - Viewed (0)