================
@@ -1,5 +1,8 @@
#!/usr/bin/env python3
+# FIXME: remove when LLDB_MINIMUM_PYTHON_VERSION > 3.8
+from __future__ import annotations
----------------
da-viper wrote:
It is not supported for `__future__` imports
```py
# using
import sys
if sys.version_info <= (3,8):
# FIXME: remove when LLDB_MINIMUM_PYTHON_VERSION > 3.8
from __future__ import annotations
```
```sh
File
"/builder/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py",
line 4
from __future__ import annotations
^
SyntaxError: from __future__ imports must occur at the beginning of the file
```
https://github.com/llvm/llvm-project/pull/173264
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits