[llvm] [update_mc_test_checks.py] Fix python 3.8 compatibility (PR #176978)
Alexander Richardson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 20 09:35:19 PST 2026
https://github.com/arichardson created https://github.com/llvm/llvm-project/pull/176978
Add `from __future__ import annotations` which is needed since
https://github.com/llvm/llvm-project/pull/174011 landed.
>From 1d3634b6e78dd3e3e76568421bba8bb8bc7eff11 Mon Sep 17 00:00:00 2001
From: Alex Richardson <alexrichardson at google.com>
Date: Tue, 20 Jan 2026 09:34:49 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.8-beta.1
---
llvm/utils/update_mc_test_checks.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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