Problem statement
Since our current minimum required Python version (3.8) [1] reached its end of life quite some time ago, and with 3.9 recently following while 3.10 is approaching end of life October next year, it’s a good moment to revisit our minimum version requirement.
According to a JetBrains report [2], Python 3.12 has become the new sheriff in town, with 3.11 and 3.10 still holding usage shares of at least 15%.
To strike a balance between usability and long-term support, I suggest raising our minimum supported version to either Python 3.10 or 3.11.
Solution
Agree on a new python version and update our entire code-base to align with features available in our target minimum Python version.
As an example for 3.10 this includes, but is not limited to:
Additional Context
No response
Problem statement
Since our current minimum required Python version (3.8) [1] reached its end of life quite some time ago, and with 3.9 recently following while 3.10 is approaching end of life October next year, it’s a good moment to revisit our minimum version requirement.
According to a JetBrains report [2], Python 3.12 has become the new sheriff in town, with 3.11 and 3.10 still holding usage shares of at least 15%.
To strike a balance between usability and long-term support, I suggest raising our minimum supported version to either Python 3.10 or 3.11.
Solution
Agree on a new python version and update our entire code-base to align with features available in our target minimum Python version.
As an example for 3.10 this includes, but is not limited to:
Adapt newly introduced type hint styles
Annotatedfor richer type hints (3.9)TypeAliasfor clearer type definitions (3.10)X | Ysyntax (3.10)ParamSpec) for higher-order functions (3.10)Update project configuration files, such as
pyproject.toml, CI actions, etc.python_requiresinpyproject.tomlto>=3.10Utilize new language features
if-elif-elsechains tomatch-casestatements (3.10)str.removeprefix()/str.removesuffix()(3.9)zoneinfomodule (3.9)withstatements (3.10)Additional Context
No response