Skip to content

Commit

Permalink
Fix subscripted types for Python 3.8 (#97)
Browse files Browse the repository at this point in the history
The changes in PR #89 inadvertently added a line that is incompatible
with Python version 3.8. However, Python 3.8 is still supported for
around one more year from now (https://devguide.python.org/versions/),
so this change restores 3.8 compatibility.
  • Loading branch information
jasongraffius authored Oct 4, 2023
1 parent d457a4f commit ac5e59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/back_end/cpp/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Attribute(str, Enum):
}


class Scope(set[tuple[Attribute, bool]], Enum):
class Scope(set, Enum):
"""Allowed scopes for C++ backend attributes.
Each entry is a set of (Attribute, default?) tuples, the first value being
Expand Down

0 comments on commit ac5e59b

Please sign in to comment.