From 6f690b5ead837c608955d73fdd5dc445e548cad1 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 11 Dec 2025 16:08:38 +0100 Subject: [PATCH] Remove code examples for Python 3.8 in `response_directly` --- docs/en/docs/advanced/custom-response.md | 2 +- docs/en/docs/advanced/response-directly.md | 2 +- .../response_directly/{tutorial001.py => tutorial001_py39.py} | 0 .../response_directly/{tutorial002.py => tutorial002_py39.py} | 0 tests/test_tutorial/test_response_directly/test_tutorial001.py | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename docs_src/response_directly/{tutorial001.py => tutorial001_py39.py} (100%) rename docs_src/response_directly/{tutorial002.py => tutorial002_py39.py} (100%) diff --git a/docs/en/docs/advanced/custom-response.md b/docs/en/docs/advanced/custom-response.md index 85d047c09..e53409c39 100644 --- a/docs/en/docs/advanced/custom-response.md +++ b/docs/en/docs/advanced/custom-response.md @@ -136,7 +136,7 @@ It accepts the following parameters: FastAPI (actually Starlette) will automatically include a Content-Length header. It will also include a Content-Type header, based on the `media_type` and appending a charset for text types. -{* ../../docs_src/response_directly/tutorial002.py hl[1,18] *} +{* ../../docs_src/response_directly/tutorial002_py39.py hl[1,18] *} ### `HTMLResponse` { #htmlresponse } diff --git a/docs/en/docs/advanced/response-directly.md b/docs/en/docs/advanced/response-directly.md index 156b4dac7..4374cb963 100644 --- a/docs/en/docs/advanced/response-directly.md +++ b/docs/en/docs/advanced/response-directly.md @@ -54,7 +54,7 @@ Let's say that you want to return an