[llvm] [lit] Make MetricValue a proper abstract base class (PR #200187)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 08:34:25 PDT 2026
================
@@ -59,24 +60,24 @@ def __repr__(self):
# Test metric values.
-class MetricValue:
+class MetricValue(abc.ABC):
+ @abc.abstractmethod
def format(self):
"""
format() -> str
----------------
arichardson wrote:
Unrelated to this change, but is the plan to also add type annotations instead of these comments? It should be possible to automate adding some of these annotations using the various type checker tools.
https://github.com/llvm/llvm-project/pull/200187
More information about the llvm-commits
mailing list