📝 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

@@ -1,6 +1,6 @@
from inline_snapshot import snapshot
from docs_src.app_testing.app_a_py39.test_main import client, test_read_main
from docs_src.app_testing.app_a_py310.test_main import client, test_read_main
def test_main():

View File

@@ -9,9 +9,7 @@ from ...utils import needs_py310
@pytest.fixture(
name="test_module",
params=[
"app_b_py39.test_main",
pytest.param("app_b_py310.test_main", marks=needs_py310),
"app_b_an_py39.test_main",
pytest.param("app_b_an_py310.test_main", marks=needs_py310),
],
)

View File

@@ -1,6 +1,6 @@
from inline_snapshot import snapshot
from docs_src.app_testing.tutorial001_py39 import client, test_read_main
from docs_src.app_testing.tutorial001_py310 import client, test_read_main
def test_main():

View File

@@ -1,4 +1,4 @@
from docs_src.app_testing.tutorial002_py39 import test_read_main, test_websocket
from docs_src.app_testing.tutorial002_py310 import test_read_main, test_websocket
def test_main():

View File

@@ -3,5 +3,5 @@ import pytest
def test_main():
with pytest.warns(DeprecationWarning):
from docs_src.app_testing.tutorial003_py39 import test_read_items
from docs_src.app_testing.tutorial003_py310 import test_read_items
test_read_items()

View File

@@ -1,4 +1,4 @@
from docs_src.app_testing.tutorial004_py39 import test_read_items
from docs_src.app_testing.tutorial004_py310 import test_read_items
def test_main():