- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for tab (0.01 sec)
-
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
## Type annotation vs `Depends` { #type-annotation-vs-depends } Notice how we write `CommonQueryParams` twice in the above code: //// tab | Python 3.8+ ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```PythonRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 6.7K bytes - Viewed (0) -
docs/en/docs/environment-variables.md
//// tab | Linux, macOS, Windows Bash <div class="termy"> ```console // You could create an env var MY_NAME with $ export MY_NAME="Wade Wilson" // Then you could use it with other programs, like $ echo "Hello $MY_NAME" Hello Wade Wilson ``` </div> //// //// tab | Windows PowerShell <div class="termy"> ```console
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 8.1K bytes - Viewed (0) -
docs/en/docs/python-types.md
This also means that in Python 3.10, you can use `Something | None`: //// tab | Python 3.10+ ```Python hl_lines="1" {!> ../../docs_src/python_types/tutorial009_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="1 4" {!> ../../docs_src/python_types/tutorial009.py!} ``` //// //// tab | Python 3.8+ alternative ```Python hl_lines="1 4"Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 17.1K bytes - Viewed (0) -
docs/en/docs/virtual-environments.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 22.4K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
Both *path operations* require an `X-Token` header. //// tab | Python 3.10+ ```Python {!> ../../docs_src/app_testing/app_b_an_py310/main.py!} ``` //// //// tab | Python 3.9+ ```Python {!> ../../docs_src/app_testing/app_b_an_py39/main.py!} ``` //// //// tab | Python 3.8+ ```Python {!> ../../docs_src/app_testing/app_b_an/main.py!} ```Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 6.6K bytes - Viewed (0) -
docs/en/docs/tutorial/query-params-str-validations.md
We had this type annotation: //// tab | Python 3.10+ ```Python q: str | None = None ``` //// //// tab | Python 3.8+ ```Python q: Union[str, None] = None ``` //// What we will do is wrap that with `Annotated`, so it becomes: //// tab | Python 3.10+ ```Python q: Annotated[str | None] = None ``` //// //// tab | Python 3.8+ ```Python
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 17.2K bytes - Viewed (0) -
docs/en/docs/advanced/path-operation-advanced-configuration.md
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 7.8K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/sub-dependencies.md
//// tab | Python 3.8+ ```Python hl_lines="1" async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]): return {"fresh_value": fresh_value} ``` //// //// tab | Python 3.8+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. ///
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3.7K bytes - Viewed (0) -
docs/en/docs/tutorial/schema-extra-example.md
//// tab | Pydantic v2 {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *} //// //// tab | Pydantic v1 {* ../../docs_src/schema_extra_example/tutorial001_pv1_py310.py hl[13:23] *} //// That extra info will be added as-is to the output **JSON Schema** for that model, and it will be used in the API docs. //// tab | Pydantic v2Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.6K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
You can use all the same validation features and tools you use for Pydantic models, like different data types and additional validations with `Field()`. //// tab | Pydantic v2 {* ../../docs_src/settings/tutorial001.py hl[2,5:8,11] *} //// //// tab | Pydantic v1 /// info In Pydantic v1 you would import `BaseSettings` directly from `pydantic` instead of from `pydantic_settings`. ///Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.2K bytes - Viewed (0)