Skip to content

Commit

Permalink
Make lldbDataFormatters.py compatible with Python 3.8 (llvm#82518)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
arichardson authored Feb 21, 2024
1 parent 22cf983 commit db9811c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/utils/lldbDataFormatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Load into LLDB with 'command script import /path/to/lldbDataFormatters.py'
"""
from __future__ import annotations

import collections
import lldb
Expand Down

0 comments on commit db9811c

Please sign in to comment.