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

This commit is contained in:
Sebastián Ramírez authored and GitHub committed 2026-02-12 14:19:43 +01:00
1 parent d06ab3f5c7
commit c9e2277d8b
655 files changed
+3703 -5660

No files matched your search

@@ -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():
@@ -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),
],
)
@@ -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():
@@ -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():
@@ -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()
@@ -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():