[llvm] [lit] Add type hints to formats (PR #201583)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 07:20:01 PDT 2026


================
@@ -1,11 +1,24 @@
+from __future__ import annotations
+
 import os
+from typing import TYPE_CHECKING, Iterator, Tuple, Union
 
 import lit.Test
 import lit.util
 
+if TYPE_CHECKING:
----------------
boomanaiden154 wrote:

Can we refactor to avoid this?

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


More information about the llvm-commits mailing list