Remove code examples for Python 3.8 in `response_cookies`

This commit is contained in:
Yurii Motov 2025-12-11 16:03:56 +01:00
parent f40bcf171c
commit bae52613ea
5 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ You can declare a parameter of type `Response` in your *path operation function*
And then you can set cookies in that *temporal* response object. And then you can set cookies in that *temporal* response object.
{* ../../docs_src/response_cookies/tutorial002.py hl[1, 8:9] *} {* ../../docs_src/response_cookies/tutorial002_py39.py hl[1, 8:9] *}
And then you can return any object you need, as you normally would (a `dict`, a database model, etc). And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
@ -24,7 +24,7 @@ To do that, you can create a response as described in [Return a Response Directl
Then set Cookies in it, and then return it: Then set Cookies in it, and then return it:
{* ../../docs_src/response_cookies/tutorial001.py hl[10:12] *} {* ../../docs_src/response_cookies/tutorial001_py39.py hl[10:12] *}
/// tip /// tip

View File

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

View File

@ -1,6 +1,6 @@
from fastapi.testclient import TestClient from fastapi.testclient import TestClient
from docs_src.response_cookies.tutorial002 import app from docs_src.response_cookies.tutorial002_py39 import app
client = TestClient(app) client = TestClient(app)