This is an automated email from the ASF dual-hosted git repository.

vatsrahul1001 pushed a commit to branch v3-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 74d5606ec5db35eacd2f1a3da98018528bdfee8f
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Oct 29 21:48:44 2026 +0530

    [v3-4-test] Remove unused decorator default comparison helper (#75849) 
(#75926)
    
    (cherry picked from commit f7abf6fec2d96c0b184c2545af068444ae795698)
    
    Co-authored-by: Hussein Awala <[email protected]>
---
 scripts/ci/prek/check_init_decorator_arguments.py | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/scripts/ci/prek/check_init_decorator_arguments.py 
b/scripts/ci/prek/check_init_decorator_arguments.py
index 179b16a3121..408e5a4b329 100755
--- a/scripts/ci/prek/check_init_decorator_arguments.py
+++ b/scripts/ci/prek/check_init_decorator_arguments.py
@@ -188,21 +188,6 @@ def _match_arguments(
             yield f"[red]Type annotation missing on @{deco_name} argument: 
{attr_name}"
 
 
-def _match_defaults(
-    arg_names: list[str],
-    init_def: tuple[str, list[ast.expr]],
-    deco_def: tuple[str, list[ast.expr]],
-) -> collections.abc.Iterator[str]:
-    init_name, init_defaults = init_def
-    deco_name, deco_defaults = deco_def
-    for i, (ini, dec) in enumerate(zip(init_defaults, deco_defaults), 1):
-        if ast.dump(ini) != ast.dump(dec):  # Poorly implemented equality 
check.
-            yield (
-                f"[red]Argument {arg_names[i]!r} default mismatch: "
-                f"{init_name} has {ast.unparse(ini)} but @{deco_name} has 
{ast.unparse(dec)}"
-            )
-
-
 def check_dag_init_decorator_arguments() -> int:
     dag_mod = ast.parse(DAG_PY.read_text("utf-8"), str(DAG_PY))
     tg_mod = ast.parse(TG_PY.read_text("utf-8"), str(TG_PY))

Reply via email to