Skip to content

Commit

Permalink
Require Python 3.9 for codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Aug 14, 2024
1 parent 903518b commit 811cb8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codegen/id_mapping/generate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ast
import sys
from collections import defaultdict
from dataclasses import dataclass, field
from typing import List, Optional
Expand Down Expand Up @@ -107,6 +108,9 @@ def to_function(self) -> ast.FunctionDef:

@app.command()
def main() -> None:
# ast.unparse uses Python 3.9+
assert sys.version_info >= (3, 9)

rules: defaultdict[int, Rule] = defaultdict(Rule)

# Build up a list of rules
Expand Down

0 comments on commit 811cb8d

Please sign in to comment.