Skip to content

Commit db9811c

Browse files
authored
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`.
1 parent 22cf983 commit db9811c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/utils/lldbDataFormatters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
Load into LLDB with 'command script import /path/to/lldbDataFormatters.py'
55
"""
6+
from __future__ import annotations
67

78
import collections
89
import lldb

0 commit comments

Comments
 (0)