[llvm] 563b596 - [update_mc_test_checks.py] Fix python 3.8 compatibility

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 20 09:35:32 PST 2026


Author: Alexander Richardson
Date: 2026-01-20T09:35:27-08:00
New Revision: 563b5969bb55511ada43da96315fa1310810adb0

URL: https://github.com/llvm/llvm-project/commit/563b5969bb55511ada43da96315fa1310810adb0
DIFF: https://github.com/llvm/llvm-project/commit/563b5969bb55511ada43da96315fa1310810adb0.diff

LOG: [update_mc_test_checks.py] Fix python 3.8 compatibility

Add `from __future__ import annotations` which is needed since
https://github.com/llvm/llvm-project/pull/174011 landed.

Pull Request: https://github.com/llvm/llvm-project/pull/176978

Added: 
    

Modified: 
    llvm/utils/update_mc_test_checks.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/update_mc_test_checks.py b/llvm/utils/update_mc_test_checks.py
index 869258ab6f690..a109fba5fc075 100755
--- a/llvm/utils/update_mc_test_checks.py
+++ b/llvm/utils/update_mc_test_checks.py
@@ -3,7 +3,7 @@
 A test update script.  This script is a utility to update LLVM 'llvm-mc' based test cases with new FileCheck patterns.
 """
 
-from __future__ import print_function
+from __future__ import annotations, print_function
 
 from sys import stderr
 from traceback import print_exc


        


More information about the llvm-commits mailing list