This is an automated email from the ASF dual-hosted git repository.
vatsrahul1001 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 599fcb41ac0 Run the XCom column prek hook on Python 3.11 or newer
(#74405)
599fcb41ac0 is described below
commit 599fcb41ac001ec77819d284551dac25f4dcf02f
Author: Kaxil Naik <[email protected]>
AuthorDate: Thu Oct 8 10:14:05 2026 +0100
Run the XCom column prek hook on Python 3.11 or newer (#74405)
The hook was added with requires-python >=3.10 while the other prek scripts
moved to >=3.11. When prek picks a Python 3.10 interpreter for it, ast.parse
rejects the 3.11-only star-unpacking subscripts on main (for example
Result[*tuple[...]]) and the hook fails on files that do not touch XCom.
---
scripts/ci/prek/check_xcom_model_columns.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ci/prek/check_xcom_model_columns.py
b/scripts/ci/prek/check_xcom_model_columns.py
index 8d31740b757..73772cb26c8 100644
--- a/scripts/ci/prek/check_xcom_model_columns.py
+++ b/scripts/ci/prek/check_xcom_model_columns.py
@@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
# /// script
-# requires-python = ">=3.10"
+# requires-python = ">=3.11"
# dependencies = ["rich>=13.6.0"]
# ///
"""