fix: remove dead f-string prefixes via ruff F541 (216 sites) (#52336)

ruff check --fix --select F541 . on current main. Pure prefix removals;
adjacent-string concatenations keep the f only on interpolating fragments.
No string content or live placeholder altered.
This commit is contained in:
Teknium 2026-07-05 13:42:46 -07:00 committed by GitHub
parent 3d0276182a
commit 55e3ee1ab8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 215 additions and 215 deletions

View file

@ -302,7 +302,7 @@ def _print_status() -> None:
print(f"Pairing file: {PAIRING_FILE}")
print(f" exists: {PAIRING_FILE.exists()}")
print()
print(f"Top-level:")
print("Top-level:")
print(f" enabled: {cfg.enabled}")
print(f" policy: {cfg.policy}")
print(f" allow_from: {sorted(cfg.allow_from) if cfg.allow_from else '[]'}")
@ -339,7 +339,7 @@ def _do_check(doc_key: str, user_open_id: str) -> None:
allowed = is_user_allowed(rule, user_open_id)
print(f"Document: {doc_key}")
print(f"User: {user_open_id}")
print(f"Resolved rule:")
print("Resolved rule:")
print(f" enabled: {rule.enabled}")
print(f" policy: {rule.policy}")
print(f" allow_from: {sorted(rule.allow_from) if rule.allow_from else '[]'}")