[llvm] [lit] Add type hints to builtin_commands (PR #201497)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 06:29:22 PDT 2026


================
@@ -2,17 +2,18 @@
 import subprocess
 import resource
 import os
+from typing import List, NoReturn, Tuple
 
-ULIMIT_ENV_VAR_PREFIX = "LIT_INTERNAL_ULIMIT_"
+ULIMIT_ENV_VAR_PREFIX: str = "LIT_INTERNAL_ULIMIT_"
----------------
boomanaiden154 wrote:

Are you actually running into issues with type checkers failing to infer the type here? Given it's a constant I imagine it should be trivial to infer...

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


More information about the llvm-commits mailing list