Author: Charles Zablit Date: 2025-09-05T17:25:38+01:00 New Revision: 25ebdfe0ab202a6cb30232d84bc5838439fd67d5
URL: https://github.com/llvm/llvm-project/commit/25ebdfe0ab202a6cb30232d84bc5838439fd67d5 DIFF: https://github.com/llvm/llvm-project/commit/25ebdfe0ab202a6cb30232d84bc5838439fd67d5.diff LOG: [lldb] fix Python 3.9+ specific typing annotations (#156868) This patch replaces `list` with its `typing` implementation, i.e `list[str]` becomes `List[str]`. [Type hinting generic in the standard collection were introduced in Python 3.9](https://peps.python.org/pep-0585/), however the minimum supported Python version for lldb is 3.8. This patch will unblock the [bots for Ubuntu 20.04](https://ci.swift.org/view/Swift%20rebranch/job/oss-swift-rebranch-package-ubuntu-20_04/2847/consoleText), which run on Python 3.8. Added: Modified: lldb/packages/Python/lldbsuite/test/decorators.py Removed: ################################################################################ diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py index bd10bcc3d6ce0..16a58cfc10b9a 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 _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
