testsAndMisc/python_pkg/brother_printer
Krzysztof kuhy Rudnicki adf2e402df Grade against 3.14 too, not just run on it
`requires-python` and the CI pin already said 3.14, but ruff, mypy and pylint
were still grading `meta/` against 3.10 -- three tools judging an interpreter
nothing runs any more, and ruff withholding the pyupgrade fixes that only
become safe at the newer target. `pin_ci_python.py` rewrites these three knobs.

What the stale target was hiding: `datetime.timezone.utc` where `datetime.UTC`
is now correct (UP017), and ruff's stable formatter applying PEP 758 --
`except (A, B):` becomes `except A, B:`. That makes the source 3.14-only at the
syntax level, which is what `requires-python = ">=3.14"` already promised; kuhy
chose it deliberately over holding ruff a release back (2026-08-29).

Also drops a comment in `wsg_grabber/models.py` that the bump makes false: it
explained why the file used ``str, Enum`` instead of ``StrEnum`` under mypy at
3.10, sitting directly above a ``class Verdict(StrEnum)`` that had already
stopped obeying it.

ruff, ruff-format, mypy --strict and pylint all clean at the new target.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfnJmxxsZ534AKk16rC2Gr
2026-08-29 11:50:39 +02:00
..
tests Clear the last three brother_printer test modules over the cap 2026-08-16 17:27:07 +02:00
__init__.py feat: brother printer checker 2026-02-06 21:21:52 +01:00
__main__.py fix(brother-printer): report the truth, not invented status codes 2026-07-17 14:49:23 +02:00
_cups_fallback.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
_page_count.py Split brother_printer dropped-page detection out of consumables 2026-08-16 17:07:21 +02:00
_page_delivery.py Split brother_printer dropped-page detection out of consumables 2026-08-16 17:07:21 +02:00
_pjl_io.py Split brother_printer PJL wire transport out of usb_query 2026-08-16 17:11:15 +02:00
_query.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
_queue_fix.py Split brother_printer queue display and fix prompt out of cups_queue 2026-08-16 16:53:51 +02:00
_severity.py Reduce brother_printer/display.py and dedup the consumable bars 2026-08-16 16:39:02 +02:00
_supply.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
check_brother_printer.py fix(brother-printer): split oversized files, fix order-dependent entry test 2026-07-17 15:06:25 +02:00
constants.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
consumables.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
cups_queue.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
cups_service.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
data_classes.py fix(brother-printer): report the truth, not invented status codes 2026-07-17 14:49:23 +02:00
display.py Split the brother_printer display and usb_query test modules 2026-08-16 17:23:47 +02:00
network_query.py Grade against 3.14 too, not just run on it 2026-08-29 11:50:39 +02:00
run.sh fix(brother-printer): report the truth, not invented status codes 2026-07-17 14:49:23 +02:00
usb_query.py Split brother_printer PJL wire transport out of usb_query 2026-08-16 17:11:15 +02:00