[llvm] [lit] Add type hints (PR #200708)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 19:04:55 PDT 2026


================
@@ -80,7 +93,7 @@ def change_dir(self, newdir):
 # Skips the command, and parses its arguments.
 # Modifies env accordingly.
 # Returns copy of args without the command or its arguments.
-def updateEnv(env, args):
+def updateEnv(env: ShellEnvironment, args: List[str]) -> List[Union[Any, str]]:
----------------
prasoon054 wrote:

I'll fix those. `monkeytype` records types each time it encounters a function or method and and adds them to a `Union`. I have already fixed many of these cases, but a few slipped through. I'll address the remaining ones and split this work into smaller PRs.

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


More information about the llvm-commits mailing list