================
@@ -3060,15 +3048,15 @@ def __str__(self) -> str:
return self.name
def __repr__(self) -> str:
- return "<ChunkKind: %s>" % self
+ return f"<ChunkKind: {self}>"
def __init__(self, completionString: CObjP, key: int):
self.cs = completionString
self.key = key
self.__kindNumberCache = -1
def __repr__(self) -> str:
- return "{'" + self.spelling + "', " + str(self.kind) + "}"
+ return f"{{'{self.spelling}', {self.kind}}}"
----------------
Endilll wrote:
Where the second pair of curly braces came from?
https://github.com/llvm/llvm-project/pull/173861
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits