mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-18 05:15:46 -04:00
📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)
This commit is contained in:
committed by
GitHub
parent
d06ab3f5c7
commit
c9e2277d8b
@@ -10,7 +10,7 @@ def client():
|
||||
static_dir: Path = Path(os.getcwd()) / "static"
|
||||
print(static_dir)
|
||||
static_dir.mkdir(exist_ok=True)
|
||||
from docs_src.custom_docs_ui.tutorial001_py39 import app
|
||||
from docs_src.custom_docs_ui.tutorial001_py310 import app
|
||||
|
||||
with TestClient(app) as client:
|
||||
yield client
|
||||
|
||||
@@ -10,7 +10,7 @@ def client():
|
||||
static_dir: Path = Path(os.getcwd()) / "static"
|
||||
print(static_dir)
|
||||
static_dir.mkdir(exist_ok=True)
|
||||
from docs_src.custom_docs_ui.tutorial002_py39 import app
|
||||
from docs_src.custom_docs_ui.tutorial002_py310 import app
|
||||
|
||||
with TestClient(app) as client:
|
||||
yield client
|
||||
|
||||
Reference in New Issue
Block a user