Commit f413b6c
ENH: Update pyBase.i runtime Python version check from 3.9 to 3.10
The runtime version guard in pyBase.i checked for Python 3.9 but
CMake/ITKSetPython3Vars.cmake already sets PYTHON_VERSION_MIN=3.10,
and the codebase now uses Python 3.10-only syntax (PEP 604 unions).
A Python 3.9 user would pass the old guard but immediately hit a
TypeError at import time from the X|Y type annotations.
Update the check and error message to match the CMake minimum,
as the comment in pyBase.i instructs.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fd08cf3 commit f413b6c
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments