- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 606 for Tip (0.19 seconds)
-
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
//// tab | Python 3.10+ ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` //// //// tab | Python 3.10+ non-Annotated /// tip Prefer to use the `Annotated` version if possible. /// ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` //// The last `CommonQueryParams`, in:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 6.8K bytes - Click Count (0) -
docs/en/docs/advanced/async-tests.md
</div> ## In Detail { #in-detail } The marker `@pytest.mark.anyio` tells pytest that this test function should be called asynchronously: {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[7] *} /// tip Note that the test function is now `async def` instead of just `def` as before when using the `TestClient`. /// Then we can create an `AsyncClient` with the app, and send async requests to it, using `await`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 3.8K bytes - Click Count (0) -
docs/ja/llm-prompt.md
- path operation: path operation (do not translate) ### `///` admonitions 1) Keep the admonition keyword in English (do not translate `note`, `tip`, etc.). 2) If a title is present, prefer these canonical titles: - `/// note | 備考` - `/// note | 技術詳細` - `/// tip | 豆知識` - `/// warning | 注意` - `/// info | 情報` - `/// check | 確認`
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 16:44:21 GMT 2026 - 1.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/classes-as-dependencies.md
//// tab | Python 3.10+ 非 Annotated /// tip 如有可能,優先使用 `Annotated` 版本。 /// ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` //// ...而是改為: //// tab | Python 3.10+ ```Python commons: Annotated[CommonQueryParams, Depends()] ``` //// //// tab | Python 3.10+ 非 Annotated /// tip 如有可能,優先使用 `Annotated` 版本。 ///
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 6.7K bytes - Click Count (0) -
docs/ko/llm-prompt.md
- app: 애플리케이션 - command: 명령어 - burger: 햄버거 (NOT 버거) ### `///` admonitions 1) Keep the admonition keyword in English (do not translate `note`, `tip`, etc.). 2) If a title is present, prefer these canonical titles: - `/// note | 참고` - `/// tip | 팁` - `/// warning | 경고` - `/// info | 정보` - `/// danger | 위험` - `/// note Technical Details | 기술 세부사항` - `/// check | 확인` Notes:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 24 21:17:54 GMT 2026 - 1.7K bytes - Click Count (0) -
docs/zh/docs/advanced/openapi-callbacks.md
本例没有实现回调本身(只是一行代码),只有文档部分。 /// tip | 提示 实际的回调只是 HTTP 请求。 实现回调时,要使用 [HTTPX](https://www.python-httpx.org) 或 [Requests](https://requests.readthedocs.io/)。 /// ## 编写回调文档代码 { #write-the-callback-documentation-code } 应用不执行这部分代码,只是用它来*记录 外部 API* 。 但,您已经知道用 **FastAPI** 创建自动 API 文档有多简单了。 我们要使用与存档*外部 API* 相同的知识...通过创建外部 API 要实现的*路径操作*(您的 API 要调用的)。 /// tip | 提示Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 6.6K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/classes-as-dependencies.md
//// tab | Python 3.10+ ```Python commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)] ``` //// //// tab | Python 3.10+ Annotated 미사용 /// tip | 팁 가능하다면 `Annotated` 버전을 사용하는 것을 권장합니다. /// ```Python commons: CommonQueryParams = Depends(CommonQueryParams) ``` //// 마지막 `CommonQueryParams`는, 다음에서: ```Python
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 8K bytes - Click Count (0) -
docs/zh/docs/advanced/testing-dependencies.md
{* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip | 提示 **FastAPI** 应用中的任何位置都可以实现覆盖依赖项。 原依赖项可用于*路径操作函数*、*路径操作装饰器*(不需要返回值时)、`.include_router()` 调用等。 FastAPI 可以覆盖这些位置的依赖项。 /// 然后,使用 `app.dependency_overrides` 把覆盖依赖项重置为空**字典**: ```Python app.dependency_overrides = {} ``` /// tip | 提示 如果只在某些测试时覆盖依赖项,您可以在测试开始时(在测试函数内)设置覆盖依赖项,并在结束时(在测试函数结尾)重置覆盖依赖项。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
docs/zh-hant/docs/advanced/testing-dependencies.md
{* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip 你可以為應用程式中任何地方使用到的相依設定覆寫。 原始相依可以用在*路徑操作函式*、*路徑操作裝飾器*(當你不使用其回傳值時)、`.include_router()` 呼叫等。 FastAPI 仍然能夠將其覆寫。 /// 然後你可以將 `app.dependency_overrides` 設為空的 `dict` 以重設(移除)所有覆寫: ```Python app.dependency_overrides = {} ``` /// tip 如果只想在某些測試中覆寫相依,你可以在測試開始時(測試函式內)設定覆寫,並在結束時(測試函式結尾)重設。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 2.1K bytes - Click Count (0) -
docs/zh/docs/advanced/async-tests.md
/// tip | 提示 请注意,测试函数现在用的是 `async def`,而不是像以前使用 `TestClient` 时那样只是 `def` 。 /// 我们现在可以使用应用程序创建一个 `AsyncClient` ,并使用 `await` 向其发送异步请求。 {* ../../docs_src/async_tests/app_a_py310/test_main.py hl[9:12] *} 这相当于: ```Python response = client.get('/') ``` ...我们曾经通过它向 `TestClient` 发出请求。 /// tip | 提示 请注意,我们正在将 async/await 与新的 `AsyncClient` 一起使用——请求是异步的。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.9K bytes - Click Count (0)