From c1736a101c052cfe79825704f61b1d69b4b55141 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Wed, 10 Dec 2025 21:37:25 +0100 Subject: [PATCH] Remove code examples for Python 3.8 in `first_steps` --- docs/en/docs/tutorial/first-steps.md | 14 +++++++------- .../{tutorial001.py => tutorial001_py39.py} | 0 docs_src/first_steps/tutorial002.py | 8 -------- .../{tutorial003.py => tutorial003_py39.py} | 0 .../test_first_steps/test_tutorial001.py | 2 +- 5 files changed, 8 insertions(+), 16 deletions(-) rename docs_src/first_steps/{tutorial001.py => tutorial001_py39.py} (100%) delete mode 100644 docs_src/first_steps/tutorial002.py rename docs_src/first_steps/{tutorial003.py => tutorial003_py39.py} (100%) diff --git a/docs/en/docs/tutorial/first-steps.md b/docs/en/docs/tutorial/first-steps.md index b88ff6a18..df8e91ecd 100644 --- a/docs/en/docs/tutorial/first-steps.md +++ b/docs/en/docs/tutorial/first-steps.md @@ -2,7 +2,7 @@ The simplest FastAPI file could look like this: -{* ../../docs_src/first_steps/tutorial001.py *} +{* ../../docs_src/first_steps/tutorial001_py39.py *} Copy that to a file `main.py`. @@ -183,7 +183,7 @@ That's it! Now you can access your app at that URL. ✨ ### Step 1: import `FastAPI` { #step-1-import-fastapi } -{* ../../docs_src/first_steps/tutorial001.py hl[1] *} +{* ../../docs_src/first_steps/tutorial001_py39.py hl[1] *} `FastAPI` is a Python class that provides all the functionality for your API. @@ -197,7 +197,7 @@ You can use all the