- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 573 for Annotated (0.2 sec)
-
tests/test_annotated.py
from fastapi.testclient import TestClient from typing_extensions import Annotated app = FastAPI() @app.get("/default") async def default(foo: Annotated[str, Query()] = "foo"): return {"foo": foo} @app.get("/required") async def required(foo: Annotated[str, Query(min_length=1)]): return {"foo": foo} @app.get("/multiple") async def multiple(foo: Annotated[str, object(), Query(min_length=1)]): return {"foo": foo}
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.2K bytes - Viewed (0) -
fastapi/param_functions.py
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 62.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/classes-as-dependencies.md
``` === "Python 3.10+ без Annotated" !!! tip "Подсказка" Рекомендуется использовать версию с `Annotated` если возможно. ```Python hl_lines="7" {!> ../../../docs_src/dependencies/tutorial001_py310.py!} ``` === "Python 3.6+ без Annotated" !!! tip "Подсказка" Рекомендуется использовать версию с `Annotated` если возможно. ```Python hl_lines="11"
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Jan 12 11:12:19 GMT 2024 - 16.3K bytes - Viewed (0) -
fastapi/security/oauth2.py
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 02:48:51 GMT 2024 - 21.1K bytes - Viewed (1) -
fastapi/security/http.py
from typing_extensions import Annotated, Doc class HTTPBasicCredentials(BaseModel): """ The HTTP Basic credentials given as the result of using `HTTPBasic` in a dependency. Read more about it in the [FastAPI docs for HTTP Basic Auth](https://fastapi.tiangolo.com/advanced/security/http-basic-auth/). """ username: Annotated[str, Doc("The HTTP Basic username.")]
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Apr 19 15:29:38 GMT 2024 - 13.2K bytes - Viewed (0) -
docs/en/docs/tutorial/security/get-current-user.md
``` === "Python 3.10+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="3 10-14" {!> ../../../docs_src/security/tutorial002_py310.py!} ``` === "Python 3.8+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="5 12-16"
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 7.6K bytes - Viewed (0) -
docs/es/docs/tutorial/cookie-params.md
``` === "Python 3.10+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="1" {!> ../../../docs_src/cookie_params/tutorial001_py310.py!} ``` === "Python 3.8+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="3"
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Apr 19 19:30:26 GMT 2024 - 2.4K bytes - Viewed (0) -
docs_src/request_forms_and_files/tutorial001_an_py39.py
from typing import Annotated from fastapi import FastAPI, File, Form, UploadFile app = FastAPI() @app.post("/files/") async def create_file( file: Annotated[bytes, File()], fileb: Annotated[UploadFile, File()], token: Annotated[str, Form()], ): return { "file_size": len(file), "token": token, "fileb_content_type": fileb.content_type,
Python - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 386 bytes - Viewed (0) -
docs/en/docs/tutorial/body-fields.md
``` === "Python 3.10+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="2" {!> ../../../docs_src/body_fields/tutorial001_py310.py!} ``` === "Python 3.8+ non-Annotated" !!! tip Prefer to use the `Annotated` version if possible. ```Python hl_lines="4"
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 3.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-fields.md
{!> ../../../docs_src/body_fields/tutorial001_an.py!} ``` === "Python 3.10+ non-Annotated" !!! tip 尽可能选择使用 `Annotated` 的版本。 ```Python hl_lines="2" {!> ../../../docs_src/body_fields/tutorial001_py310.py!} ``` === "Python 3.8+ non-Annotated" !!! tip 尽可能选择使用 `Annotated` 的版本。 ```Python hl_lines="4" {!> ../../../docs_src/body_fields/tutorial001.py!}
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 05:35:27 GMT 2024 - 3K bytes - Viewed (0)