Commit 6f97c9f
Fix Python 3.9 compatibility: add from __future__ import annotations
Three toolchain files use Python 3.10+ type union syntax (int | None,
str | None) which pylint flags as E1131 when running under Python 3.9.
Add 'from __future__ import annotations' to enable the new syntax on
Python 3.9+.
Files fixed:
- toolchain/mfc/gen_case_constraints_docs.py
- toolchain/mfc/params/ast_analyzer.py
- toolchain/mfc/params/generators/docs_gen.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c60d364 commit 6f97c9f
File tree
3 files changed
+6
-0
lines changed- toolchain/mfc
- params
- generators
3 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments