[llvm] [utils] use annotations from __future__ in lit (PR #184225)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 12:53:34 PST 2026


================
@@ -94,8 +94,8 @@ class Display(object):
     def __init__(
         self,
         opts: Namespace,
-        tests: List[Test],
-        header: Optional[str],
+        tests: list[Test],
+        header: str | None,
----------------
boomanaiden154 wrote:

Have you tested this with python 3.8? I thought Python 3.10 was needed for the `|` optional syntax.

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


More information about the llvm-commits mailing list