From 6276c407572e7dc4ca3a8b041369185ed9fc4138 Mon Sep 17 00:00:00 2001 From: Hussein Awala Date: Tue, 31 Oct 2023 06:43:31 +0100 Subject: [PATCH] Fix weight_rule property type in mappedoperator (#35257) --- airflow/models/mappedoperator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/models/mappedoperator.py b/airflow/models/mappedoperator.py index bba45968f01f3..ba49924b88649 100644 --- a/airflow/models/mappedoperator.py +++ b/airflow/models/mappedoperator.py @@ -470,7 +470,7 @@ def priority_weight(self) -> int: # type: ignore[override] return self.partial_kwargs.get("priority_weight", DEFAULT_PRIORITY_WEIGHT) @property - def weight_rule(self) -> int: # type: ignore[override] + def weight_rule(self) -> str: # type: ignore[override] return self.partial_kwargs.get("weight_rule", DEFAULT_WEIGHT_RULE) @property