[Lldb-commits] [lldb] [python] remove Python 3.9 specific typing annotations (PR #156868)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 5 04:02:08 PDT 2025


https://github.com/charles-zablit updated https://github.com/llvm/llvm-project/pull/156868

>From 54f31b5cc3ec31e53e457c1879887f54ff14f14e Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Fri, 5 Sep 2025 12:01:56 +0100
Subject: [PATCH] [lldb] fix Python 3.9+ specific typing annotations

---
 lldb/packages/Python/lldbsuite/test/decorators.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index a391319ca9b0e..48dba6195d5cd 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -1,4 +1,8 @@
 # System modules
+
+# allow the use of the `list[str]` type hint in Python 3.8
+from __future__ import annotations
+
 from functools import wraps
 from packaging import version
 import ctypes



More information about the lldb-commits mailing list