You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rewrite every str.format call site in gemd and tests as an f-string. The
rendered strings are unchanged, since both forms dispatch to __format__.
Ruff's UP032 rule generated 44 of these. It skipped two call sites, which
this commit rewrites by hand: each nested a double-quoted string inside its
format arguments, and an f-string expression cannot reuse the enclosing
quote character before Python 3.12. Both now use single quotes inside the
expression, which Python 3.9 accepts.
Leave UP032 out of the ruff rule selection. This is a one-time improvement
rather than a standing rule.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments