Remove code examples for Python 3.8 in `response_change_status_code`

This commit is contained in:
Yurii Motov 2025-12-11 16:00:30 +01:00
parent d566e0d61f
commit f40bcf171c
3 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ You can declare a parameter of type `Response` in your *path operation function*
And then you can set the `status_code` in that *temporal* response object.
{* ../../docs_src/response_change_status_code/tutorial001.py hl[1,9,12] *}
{* ../../docs_src/response_change_status_code/tutorial001_py39.py hl[1,9,12] *}
And then you can return any object you need, as you normally would (a `dict`, a database model, etc).

View File

@ -1,6 +1,6 @@
from fastapi.testclient import TestClient
from docs_src.response_change_status_code.tutorial001 import app
from docs_src.response_change_status_code.tutorial001_py39 import app
client = TestClient(app)