pyproject.toml declares requires-python = ">=3.11" but the tooling targets are pinned to 3.10:
[tool.ruff] target-version = "py310"
[tool.mypy] python_version = "3.10"
The doctrine test infrastructure imports tomllib (stdlib since 3.11), and tomllib does not exist in 3.10.
Proposal:
- Bump
[tool.ruff] target-version from "py310" to "py311"
- Bump
[tool.mypy] python_version from "3.10" to "3.11"
- Fix the resulting UP017 violations:
timezone.utc → datetime.UTC (3.11+)
- Fix the resulting UP042 violations:
(str, Enum) → StrEnum (3.11+)
pyproject.tomldeclaresrequires-python = ">=3.11"but the tooling targets are pinned to 3.10:[tool.ruff] target-version = "py310"[tool.mypy] python_version = "3.10"The doctrine test infrastructure imports
tomllib(stdlib since 3.11), andtomllibdoes not exist in 3.10.Proposal:
[tool.ruff] target-versionfrom"py310"to"py311"[tool.mypy] python_versionfrom"3.10"to"3.11"timezone.utc→datetime.UTC(3.11+)(str, Enum)→StrEnum(3.11+)