From 16136334094dff5f76f53c704ac746b623547814 Mon Sep 17 00:00:00 2001 From: rrs <276464689+robotrocketscience@users.noreply.github.com> Date: Fri, 1 May 2026 09:01:03 -0700 Subject: [PATCH] build: drop dead `tomli` fallback (closes #330) `requires-python = ">=3.12"` makes the `try: import tomllib / except ImportError: import tomli` fallback unreachable; stdlib tomllib ships in 3.11+. Drop the try/except and the matching DEP003 deptry ignore. Resigned, signed-commit version: prior PRs #332 and #337 had identical diffs but were unsigned after the auto-rebase workflow rewrote them as github-actions[bot]; ruleset requires signatures, so neither was mergeable. Closing both as superseded. --- pyproject.toml | 3 --- src/aelfrice/deferred_feedback.py | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 25625e96b..6a76bfbba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -137,9 +137,6 @@ DEP002 = [ # DEP001: `benchmarks` is the in-repo top-level package imported via the # pytest pythonpath shim; not a PyPI dependency. DEP001 = ["benchmarks"] -# DEP003: tomli is the Py 3.10 fallback for stdlib tomllib in -# src/aelfrice/deferred_feedback.py. Drops when Py 3.10 support drops. -DEP003 = ["tomli"] [dependency-groups] dev = [ diff --git a/src/aelfrice/deferred_feedback.py b/src/aelfrice/deferred_feedback.py index 12ca329e4..5b6c0cc9f 100644 --- a/src/aelfrice/deferred_feedback.py +++ b/src/aelfrice/deferred_feedback.py @@ -43,10 +43,7 @@ from pathlib import Path from typing import IO, Any, Final -try: - import tomllib -except ImportError: # pragma: no cover - py < 3.11 fallback path - import tomli as tomllib # type: ignore[no-redef] +import tomllib from aelfrice.store import MemoryStore