Make lldbDataFormatters.py compatible with Python 3.8 (#82518)

I just tried to load this into LLDB built against Python 3.8.5 and got
the following error: `TypeError: 'type' object is not subscriptable`. I
could fix this by wrapping the annotations in quotes but since Python
3.7 this syntax can be enabled with `from __future__ import
annotations`.
This commit is contained in:
Alexander Richardson
2024-02-21 11:53:01 -08:00
committed by GitHub
parent 22cf983387
commit db9811cd13

View File

@@ -3,6 +3,7 @@ LLDB Formatters for LLVM data types.
Load into LLDB with 'command script import /path/to/lldbDataFormatters.py'
"""
from __future__ import annotations
import collections
import lldb