From ec18863b32cf2fc0de00af19410b7bae392c2a6a Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 11 Dec 2025 09:14:16 +0100 Subject: [PATCH] Remove code examples for Python 3.8 in `middleware` --- docs/en/docs/tutorial/middleware.md | 4 ++-- docs_src/middleware/{tutorial001.py => tutorial001_py39.py} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename docs_src/middleware/{tutorial001.py => tutorial001_py39.py} (100%) diff --git a/docs/en/docs/tutorial/middleware.md b/docs/en/docs/tutorial/middleware.md index d8889fc63..1e77251c5 100644 --- a/docs/en/docs/tutorial/middleware.md +++ b/docs/en/docs/tutorial/middleware.md @@ -31,7 +31,7 @@ The middleware function receives: * Then it returns the `response` generated by the corresponding *path operation*. * You can then further modify the `response` before returning it. -{* ../../docs_src/middleware/tutorial001.py hl[8:9,11,14] *} +{* ../../docs_src/middleware/tutorial001_py39.py hl[8:9,11,14] *} /// tip @@ -57,7 +57,7 @@ And also after the `response` is generated, before returning it. For example, you could add a custom header `X-Process-Time` containing the time in seconds that it took to process the request and generate a response: -{* ../../docs_src/middleware/tutorial001.py hl[10,12:13] *} +{* ../../docs_src/middleware/tutorial001_py39.py hl[10,12:13] *} /// tip diff --git a/docs_src/middleware/tutorial001.py b/docs_src/middleware/tutorial001_py39.py similarity index 100% rename from docs_src/middleware/tutorial001.py rename to docs_src/middleware/tutorial001_py39.py