chore: make python 3.12 the pyright baseline
What changed, and why it matters
This commit only changes configuration files for a Python type checker (Pyright) and removes an outdated comment in setup.cfg. It bumps the declared Python version used for type checking from 3.10 to 3.12. There is no change to the actual firmware code, no bug fix, and no security relevance.
No security action needed. This is a routine development tooling update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates two pyrightconfig.json files to set pythonVersion to 3.12 and removes a python_version = 3.10 line from setup.cfg that was tied to type union operator support. The commit message explicitly states this is a chore, keeps 3.10 in pyproject.toml for compatibility, and notes the change only affects tests. No runtime code is modified.
Changed components
core/pyrightconfig.jsonpyrightconfig.jsonsetup.cfgInspect captured patch +2 / −4
diff --git a/core/pyrightconfig.json b/core/pyrightconfig.json
index 1baab2ed..cfab1866 100644
--- a/core/pyrightconfig.json
+++ b/core/pyrightconfig.json
@@ -14,6 +14,6 @@
],
"stubPath": "mocks/generated",
"typeCheckingMode": "basic",
- "pythonVersion": "3.10",
+ "pythonVersion": "3.12",
"reportMissingModuleSource": false
}
diff --git a/pyrightconfig.json b/pyrightconfig.json
index b44a810c..05217163 100644
--- a/pyrightconfig.json
+++ b/pyrightconfig.json
@@ -15,7 +15,7 @@
],
"stubPath": "mocks/generated",
"typeCheckingMode": "basic",
- "pythonVersion": "3.10",
+ "pythonVersion": "3.12",
"reportMissingModuleSource": false,
"reportMissingImports": false
}
diff --git a/setup.cfg b/setup.cfg
index d7d022c8..74c38e88 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -61,5 +61,3 @@ warn_return_any = True
warn_unused_configs = True
warn_unused_ignores = True
show_error_codes = True
-# type union operator support, should be removed after 3.10 is the default
-python_version = 3.10
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.