📝 Update source examples and docs from Python 3.9 to 3.10 (#14900)

This commit is contained in:
Sebastián Ramírez
2026-02-12 05:19:43 -08:00
committed by GitHub
parent d06ab3f5c7
commit c9e2277d8b
655 changed files with 3703 additions and 5660 deletions

View File

@@ -10,9 +10,7 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial001_py39"),
pytest.param("tutorial001_py310", marks=needs_py310),
pytest.param("tutorial001_01_py39"),
pytest.param("tutorial001_01_py310", marks=needs_py310),
],
)

View File

@@ -10,7 +10,6 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial002_py39"),
pytest.param("tutorial002_py310", marks=needs_py310),
],
)

View File

@@ -10,7 +10,6 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial003_py39"),
pytest.param("tutorial003_py310", marks=needs_py310),
],
)

View File

@@ -10,7 +10,6 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial003_01_py39"),
pytest.param("tutorial003_01_py310", marks=needs_py310),
],
)

View File

@@ -1,7 +1,7 @@
from fastapi.testclient import TestClient
from inline_snapshot import snapshot
from docs_src.response_model.tutorial003_02_py39 import app
from docs_src.response_model.tutorial003_02_py310 import app
client = TestClient(app)

View File

@@ -1,7 +1,7 @@
from fastapi.testclient import TestClient
from inline_snapshot import snapshot
from docs_src.response_model.tutorial003_03_py39 import app
from docs_src.response_model.tutorial003_03_py310 import app
client = TestClient(app)

View File

@@ -9,7 +9,6 @@ from ...utils import needs_py310
@pytest.mark.parametrize(
"module_name",
[
pytest.param("tutorial003_04_py39"),
pytest.param("tutorial003_04_py310", marks=needs_py310),
],
)

View File

@@ -10,7 +10,6 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial003_05_py39"),
pytest.param("tutorial003_05_py310", marks=needs_py310),
],
)

View File

@@ -10,7 +10,6 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial004_py39"),
pytest.param("tutorial004_py310", marks=needs_py310),
],
)

View File

@@ -10,7 +10,6 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial005_py39"),
pytest.param("tutorial005_py310", marks=needs_py310),
],
)

View File

@@ -10,7 +10,6 @@ from ...utils import needs_py310
@pytest.fixture(
name="client",
params=[
pytest.param("tutorial006_py39"),
pytest.param("tutorial006_py310", marks=needs_py310),
],
)