[clang] [clang][Python] Use fstrings instead of string concatenations (PR #173861)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 30 01:51:39 PST 2025


================
@@ -567,7 +559,7 @@ def __init__(self, range, value):
         self.value = value
 
     def __repr__(self):
-        return "<FixIt range %r, value %r>" % (self.range, self.value)
+        return f"<FixIt range {self.range!r}, value {self.value!r}>"
----------------
mikomikotaishi wrote:

I wouldn't mind switching !r for repr() here

https://github.com/llvm/llvm-project/pull/173861


More information about the cfe-commits mailing list