From 5c0cf8f2280b5d1daadba20505628100ba024fd9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 16 Nov 2025 08:41:14 +0100 Subject: [PATCH] chore: prevent execution of command partials on python <3.13 --- build_helpers/create_command_partials.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_helpers/create_command_partials.py b/build_helpers/create_command_partials.py index dc69117b7..0d161c64e 100644 --- a/build_helpers/create_command_partials.py +++ b/build_helpers/create_command_partials.py @@ -1,4 +1,5 @@ import subprocess # noqa: S404, RUF100 +import sys from pathlib import Path @@ -62,4 +63,9 @@ def extract_command_partials(): if __name__ == "__main__": + if sys.version_info < (3, 13): # pragma: no cover + sys.exit( + "argparse output changed in Python 3.13+. " + "To keep command partials up to date, please run this script with Python 3.13+." + ) extract_command_partials()