Remove code examples for Python 3.8 in `conditional_openapi`

This commit is contained in:
Yurii Motov 2025-12-10 19:03:31 +01:00
parent 6e42b84e6c
commit ed47da49b3
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ You can easily use the same Pydantic settings to configure your generated OpenAP
For example:
{* ../../docs_src/conditional_openapi/tutorial001.py hl[6,11] *}
{* ../../docs_src/conditional_openapi/tutorial001_py39.py hl[6,11] *}
Here we declare the setting `openapi_url` with the same default of `"/openapi.json"`.

View File

@ -6,11 +6,11 @@ from ...utils import needs_pydanticv2
def get_client() -> TestClient:
from docs_src.conditional_openapi import tutorial001
from docs_src.conditional_openapi import tutorial001_py39
importlib.reload(tutorial001)
importlib.reload(tutorial001_py39)
client = TestClient(tutorial001.app)
client = TestClient(tutorial001_py39.app)
return client