[clang] [clang][Python] Use fstrings instead of string concatenations (PR #173861)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 29 07:55:38 PST 2025
================
@@ -3604,7 +3589,7 @@ def reparse(self, unsaved_files=None, options=0):
)
)
if result != 0:
- msg = "Error reparsing translation unit. Error code: " + str(result)
+ msg: str = f"Error reparsing translation unit. Error code: {result}"
----------------
Endilll wrote:
Adding a type annotation doesn't fit the scope of the PR as declared by the title. Let's leave it for another day.
https://github.com/llvm/llvm-project/pull/173861
More information about the cfe-commits
mailing list