Drop support for Python 3.9 (#1766)

This commit is contained in:
Sebastián Ramírez
2026-02-20 08:34:55 -08:00
committed by GitHub
parent ffdcb44ae2
commit ede8dd062d
229 changed files with 473 additions and 8406 deletions

View File

@@ -1,6 +1,6 @@
import importlib
from types import ModuleType
from typing import Any, Union
from typing import Any
import pytest
from sqlmodel import create_engine
@@ -8,7 +8,7 @@ from sqlmodel import create_engine
from tests.conftest import PrintMock, needs_py310
def check_calls(calls: list[list[Union[str, dict[str, Any]]]]) -> None:
def check_calls(calls: list[list[str | dict[str, Any]]]) -> None:
assert calls[0] == ["Before interacting with the database"]
assert calls[1] == [
"Hero 1:",
@@ -138,8 +138,6 @@ def check_calls(calls: list[list[Union[str, dict[str, Any]]]]) -> None:
@pytest.fixture(
name="module",
params=[
"tutorial001_py39",
"tutorial002_py39",
pytest.param("tutorial001_py310", marks=needs_py310),
pytest.param("tutorial002_py310", marks=needs_py310),
],