This is an automated email from the ASF dual-hosted git repository.
eladkal 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 6276c40757 Fix weight_rule property type in mappedoperator (#35257)
6276c40757 is described below
commit 6276c407572e7dc4ca3a8b041369185ed9fc4138
Author: Hussein Awala <[email protected]>
AuthorDate: Tue Oct 31 06:43:31 2023 +0100
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 bba45968f0..ba49924b88 100644
--- a/airflow/models/mappedoperator.py
+++ b/airflow/models/mappedoperator.py
@@ -470,7 +470,7 @@ class MappedOperator(AbstractOperator):
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