mirror of https://github.com/tiangolo/fastapi.git
Remove code examples for Python 3.8 in `conditional_openapi`
This commit is contained in:
parent
6e42b84e6c
commit
ed47da49b3
|
|
@ -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"`.
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue