Two files the formatter wanted, so CI is green again

2dbae7a went red on lint, and it was never ruff check -- that passed. It was
ruff format --check, on two files from the last few commits: a nested def with no blank
line above it in the session, and a sum() in test_logo that fits on one line once
joined. Both pure layout; neither touches a hand-aligned table, and ruff check stays
clean after, which is the thing this repository has been bitten by before.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jean-Pierre MartineauandClaude Opus 5 committed 2026-09-21 04:01:28 -04:00
1 parent 2dbae7af77
commit f962baec58
2 files changed
+2 -4

No files matched your search

+1
View File
@@ -975,6 +975,7 @@ class TuiSession:
# ⇧H only appears at all once something is hidden, which is exactly the state where
# a reader needs to be told how to undo it, and by then they have already found h.
screen.spare_hint_atoms = ("←→ scroll", "h hide")
def redraw(new_items: list) -> None:
"""Swap the rows and repaint. The reader keeps their place, by value."""
screen.replace_items(new_items)
+1 -4
View File
@@ -37,10 +37,7 @@ def _params(text: str) -> list[list[str]]:
def _brights(text: str) -> int:
"""How many sequences in `text` name a bright-bank foreground."""
return sum(
any(p.isdigit() and 90 <= int(p) <= 97 for p in parts)
for parts in _params(text)
)
return sum(any(p.isdigit() and 90 <= int(p) <= 97 for p in parts) for parts in _params(text))
# -- a bare intensity change ----------------------------------------------------------