Skip to content

Commit 472a0de

Browse files
authored
Support Python 3.9 (#1287)
1 parent 5014df0 commit 472a0de

6 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test-toolchain-compat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
16+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
1717
steps:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-python@v5

docs/postprocess_citations.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
Usage: python3 postprocess_citations.py <html_output_dir>
88
"""
99

10+
from __future__ import annotations
11+
1012
import re
1113
import sys
1214
from pathlib import Path

toolchain/bootstrap/python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
MFC_PYTHON_MIN_MAJOR=3
4-
MFC_PYTHON_MIN_MINOR=10
4+
MFC_PYTHON_MIN_MINOR=9
55
MFC_PYTHON_MIN_STR="$MFC_PYTHON_MIN_MAJOR.$MFC_PYTHON_MIN_MINOR"
66

77
is_python_compatible() {

toolchain/mfc/gen_case_constraints_docs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
Also generates case design playbook from curated working examples.
99
""" # pylint: disable=too-many-lines
1010

11+
from __future__ import annotations
12+
1113
import json
1214
import sys
1315
import subprocess

toolchain/mfc/params/ast_analyzer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
and case_constraints.md).
88
"""
99

10+
from __future__ import annotations
11+
1012
import ast
1113
import re
1214
from dataclasses import dataclass, field

toolchain/mfc/params/generators/docs_gen.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
organized by family with descriptions, types, and constraints.
66
"""
77

8+
from __future__ import annotations
9+
810
from typing import Any, Dict, List, Tuple
911
from collections import defaultdict
1012
import re

0 commit comments

Comments
 (0)